Sandbox requirements?

15 views
Skip to first unread message

Ann

unread,
Jul 12, 2010, 4:18:34 PM7/12/10
to Etsy API V2
Hi,

I am able to make oauth requests to the production environment, but
not to the sandbox.

My URI and developer key for the latter are correct, as they work when
making public calls, and I have verified the consumer key secret; I am
pulling back an older user so it is not a matter of syncing, and it
works when making a call to the public entry point anyway. I receive
the Request token/secret just fine, generate the login just fine.
However, when trying to request the access tokens with the returned
verifier and my sandbox consumer key, I get a 400 error (Invalid auth/
bad request).

I am using the same code for my requests for both environments, only
changing the variables for the entry points, consumer key and consumer
key secret.

Am I incorrect in assuming those were the only differences when making
requests from production versus sandbox?

Thanks for your time.

Ann

Ann

unread,
Jul 12, 2010, 4:24:35 PM7/12/10
to Etsy API V2
To clarify, I started this post when I was unable to get a valid
response from request to the entry point. I then backed up a stepped,
and realized I wasn't even getting an Access token/secret.

I realize if the Access token/secret are not there/valid, my request
would have generated an error ;o) I am curious as to why the verifier
and consumer key fail to generate the Access token.

Thanks.

Justin Kerr Sheckler

unread,
Jul 12, 2010, 6:33:38 PM7/12/10
to etsy-...@googlegroups.com
Hi Ann

I just tried and was able to get an OAuth token for the sandbox and
use it to make a private call.

Are you using the sandbox to request the tokens themselves?

http://openapi.etsy.com/v2/sandbox/oauth/request_token
http://openapi.etsy.com/v2/sandbox/oauth/access_token

vs

http://openapi.etsy.com/v2/oauth/request_token
http://openapi.etsy.com/v2/oauth/access_token

We may need to make this a little clearer in the docs.

JKS

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

Ann

unread,
Jul 12, 2010, 9:00:12 PM7/12/10
to Etsy API V2
That would make sense, wouldn't it?

Sorry if I missed it in the documentation. I really did look ;o)

On Jul 12, 5:33 pm, Justin Kerr Sheckler <jus...@etsy.com> wrote:
> Hi Ann
>
> I just tried and was able to get an OAuth token for the sandbox and
> use it to make a private call.
>
> Are you using the sandbox to request the tokens themselves?
>
> http://openapi.etsy.com/v2/sandbox/oauth/request_tokenhttp://openapi.etsy.com/v2/sandbox/oauth/access_token
>
> vs
>
> http://openapi.etsy.com/v2/oauth/request_tokenhttp://openapi.etsy.com/v2/oauth/access_token
Reply all
Reply to author
Forward
0 new messages