Why transaction_sold_count is private in V2?

73 views
Skip to first unread message

HAN

unread,
Sep 24, 2010, 2:44:21 AM9/24/10
to Etsy API V2, sam...@hotmail.com
Hi All,

I have confused in V2 API for "transaction_sold_count" field because I
cannot retrieve that one by using new V2 API and it is saying as
private. Actually, my existing code, V1 can access that variable from
ETSY. So, may I know how can i access that field?

Thanks,
HAN

Michael Krotscheck

unread,
Sep 24, 2010, 3:09:10 AM9/24/10
to etsy-...@googlegroups.com
Hi guys-

Every time I try to synchronize my account from prod to the sandbox, I get a variety of lovely error pages. Sadly, it appears that the error is thrown before anything gets migrated over, because subsequent calls to /users/__SELF__ nets me this lovely error:

User with PK user_id = [myuserid] does not exist

I don't suppose anyone else has run into this, and/or has an idea of how to get around it? Everything else seems to be working well enough.

Michael Krotscheck

Aaron Gardner

unread,
Sep 24, 2010, 10:31:24 AM9/24/10
to etsy-...@googlegroups.com
Michael,

Thank you for reporting this issue. We are looking into it.

Best regards,

Aaron Gardner
Developer API Team
Etsy.com

> --
> You received this message because you are subscribed to the Google Groups
> "Etsy API V2" group.
> To post to this group, send email to etsy-...@googlegroups.com.
> To unsubscribe from this group, send email to
> etsy-api-v2...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/etsy-api-v2?hl=en.
>

James Lee

unread,
Sep 24, 2010, 12:42:21 PM9/24/10
to etsy-...@googlegroups.com, sam...@hotmail.com
Han,

What calls are you making?

James Lee
Developer API Team
Etsy.com

Aaron Gardner

unread,
Sep 24, 2010, 12:58:28 PM9/24/10
to etsy-...@googlegroups.com
Michael,

We just deployed a fix for the Sandbox Sync page.

- http://www.etsy.com/your/applications/sandboxsync

You should now be able to sync your account and then access it via
sandbox API calls:

Thanks again for reporting this issue.

Best regards,

Aaron Gardner
Developer API Team
Etsy.com

Michael Krotscheck

unread,
Sep 24, 2010, 1:03:41 PM9/24/10
to etsy-...@googlegroups.com
NICE!
Thanks for the quick turnaround, guys, it worked like a charm.

Michael
Now to get back to work :)

HAN

unread,
Sep 27, 2010, 4:10:04 AM9/27/10
to Etsy API V2, sam...@hotmail.com
Hi James Lee,

We doing like this:

$usrid = "xxxxxx";
$url = "http://openapi.etsy.com/v2/sandbox/public/users/$usrid?
api_key=api_key";

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response_body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if (intval($status) != 200)
{
// throw new Exception("HTTP $status\n$response_body");
// echo "<p>I can't get it</p>";
die("ErrorU: $response_body");

}else{
$response = json_decode($response_body);
$user = $response->results[0];
print_r($user->transaction_sold_count);
//$result[] = $user->user_id . "," . $user->user_name .",". $user-
>url .",". $user->transaction_sold_count .",". $user->join_epoch;
//echo $z; echo "<br>";
}
We cannot get the user's transaction sold count. Error is "403
Developer Inactive". Please help me for this.

Regards,
HAN


On Sep 25, 12:42 am, James Lee <j...@etsy.com> wrote:
> Han,
>
> What calls are you making?
>
> James Lee
> Developer API Team
> Etsy.com
>
> On Fri, Sep 24, 2010 at 2:44 AM, HAN <pyephyo...@gmail.com> wrote:
> > Hi All,
>
> > I have confused in V2 API for "transaction_sold_count" field because I
> > cannot retrieve that one by using new V2 API and it is saying as
> > private. Actually, my existing code, V1 can access that variable from
> > ETSY. So, may I know how can i access that field?
>
> > Thanks,
> > HAN
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Etsy API V2" group.
> > To post to this group, send email to etsy-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > etsy-api-v2...@googlegroups.com<etsy-api-v2%2Bunsu...@googlegroups.com>
> > .

HAN

unread,
Sep 29, 2010, 11:34:30 PM9/29/10
to Etsy API V2
HI All,
On Sep 27, 4:10 pm, HAN <pyephyo...@gmail.com> wrote:
> Hi James Lee,
>
> We doing like this:
>
> $usrid = "xxxxxx";
>                 $url = "http://openapi.etsy.com/v2/sandbox/public/users/$usrid?
> api_key=api_key";
>
>                 $ch = curl_init($url);
>
>                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
>                 $response_body = curl_exec($ch);
>                 $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
>
>                 if (intval($status) != 200)
>                 {
>                  // throw new Exception("HTTP $status\n$response_body");
>                    //  echo "<p>I can't get it</p>";
>                         die("ErrorU: $response_body");
>
>                 }else{
>                         $response = json_decode($response_body);
>                         $user = $response->results[0];
>                         print_r($user->transaction_sold_count);
>                         //$result[] = $user->user_id . "," . $user->user_name .",". $user->url .",". $user->transaction_sold_count .",". $user->join_epoch;
>
>                         //echo $z; echo "<br>";
>                 }
> We cannot get the user's transaction sold count. Error is "403DeveloperInactive". Please help me for this.
>
> Regards,
> HAN
>
> On Sep 25, 12:42 am, James Lee <j...@etsy.com> wrote:
>
> > Han,
>
> > What calls are you making?
>
> > James Lee
> >DeveloperAPI Team

James Lee

unread,
Sep 30, 2010, 12:22:02 AM9/30/10
to etsy-...@googlegroups.com
Han,

A 403 Developer Inactive error indicates you aren't using the right key.  Make sure you're using the V2 sandbox key and try again.  Thanks.

James Lee
Developer API Team
Etsy.com

To unsubscribe from this group, send email to etsy-api-v2...@googlegroups.com.

Sami nathan

unread,
Oct 1, 2010, 4:03:53 AM10/1/10
to etsy-...@googlegroups.com, pyeph...@gmail.com
Hi James,
 
          I  already used the V2 sandbox api key. But still we can not retrive the transacion sold count value. My code  is as follow
 
  $url = http://openapi.etsy.com/v2/sandbox/public/users/$usrid?api_key=$apikey;

  $ch = curl_init($url);  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response_body = curl_exec($ch);
  $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
 
  if (intval($status) != 200)
  {
      die("ErrorU: $response_body");
    }else{
   $response = json_decode($response_body);
   $user = $response->results[0];
    print_r($user->transaction_sold_count);
  }
 
 
Please help me .
Thanks and Regards
 
Sami

Justin Kerr Sheckler

unread,
Oct 1, 2010, 10:13:18 AM10/1/10
to etsy-...@googlegroups.com
Hi Sami,

The transaction_sold_count field is part of UserProfile, not User. To
include the profile data with a user request, append
"includes=Profile" to your query string. Here's an example:

<?php
$userid = "etsystore";
$apikey = "seekrit";
$url = "http://openapi.etsy.com/v2/sandbox/public/users/$userid?api_key=$apikey&includes=Profile";


$ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response_body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if (intval($status) != 200)
{
die("ErrorU: $response_body");
}else{
$response = json_decode($response_body);
$user = $response->results[0];

print_r($user);
print_r($user->Profile->transaction_sold_count);
}

And here's the docs on UserProfile:
http://developer.etsy.com/docs/resources#userprofile

JKS

> --
> You received this message because you are subscribed to the Google Groups
> "Etsy API V2" group.
> To post to this group, send email to etsy-...@googlegroups.com.
> To unsubscribe from this group, send email to
> etsy-api-v2...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/etsy-api-v2?hl=en.
>

--
Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com

Sami nathan

unread,
Oct 3, 2010, 9:59:04 PM10/3/10
to etsy-...@googlegroups.com
Hi Justin Kerr Sheckler

     Thank you very much. It's working fine.


Regards,
 Sami

m.bi...@yahoo.com

unread,
Oct 3, 2010, 10:38:35 PM10/3/10
to etsy-...@googlegroups.com
Please stop sending me emails. I don't know who eysy is @ I have tried unsubscribing @ it won't go away. Thank you. I am an independent senior consultant with my own home based business.

Sent on the Sprint® Now Network from my BlackBerry®


From: Sami nathan <sam...@gmail.com>
Date: Mon, 4 Oct 2010 09:59:04 +0800
Subject: Re: Why transaction_sold_count is private in V2?

Luke Chadwick

unread,
Oct 3, 2010, 10:59:23 PM10/3/10
to etsy-...@googlegroups.com
Hi M,
   That's very strange, the only thing I can think of is that a previous owner of that email address may have signed up for the group! Regardless, you can send an email to etsy-api-v2...@googlegroups.com and you WILL be unsubscribed. Let me know if this doesn't work.

Regards,

Luke
email: luke.a....@gmail.com
phone: +61402203606
twitter: @vertis

Michael Krotscheck

unread,
Nov 1, 2010, 5:16:09 PM11/1/10
to etsy-...@googlegroups.com
I'm looking for a good way to populate my developer account with usable data that I can test with- in particular a full battery of sales, products transactions, feedback and the like - without having to operate my own store. From my conversation with Justin on this topic I realize that it's probably not feasible to have them populate something "by default" for devs, especially since I've seen how quickly they iterate and change things. Furthermore, I don't actually have a whole lot of friends who sell on Etsy- only buyers - so I can't ask one of them to generate a sandbox OAuth key for me so I can query against their shop.

A this point I've pretty much exhausted what is possible with Mock data, so I'm wondering if anyone out there has found a good way of generating data on the dev sandbox itself?

Michael Krotscheck

Eric

unread,
Nov 1, 2010, 5:25:18 PM11/1/10
to etsy-...@googlegroups.com
I'd be very interested in this too.

For now, I've just been using my own account (where I'm only a buyer), my wife's account (who is also a seller), and anything else that's public (like some peoples' favorites lists).

Still doesn't let a developer test for the other aspects of the API though.

We're actually underway in building a Ruby middleware piece that can simulate/generate API calls in batch-type modes, along with unit and integration tests that will confirm the Etsy API is sending back what we expect it to send back. We literally just started it this week, but once it's a bit more polished (at least enough to release), we'll post it on Github for anyone who wants it as well. Seems like a lot of us have this problem.

Thanks!
Eric @ Checklet

Reply all
Reply to author
Forward
0 new messages