Convert Etsy Shop Name To Numeric ID

64 views
Skip to first unread message

Golden Owl Admin

unread,
Jul 6, 2021, 1:21:16 PM7/6/21
to Etsy API
Hi!
I updated to OAuth2. I use Google App Script.

All works fin. Only small issue, new routine requires shop ID as number, not as string as before. Eg getListingsByShop
Anybody know how to get this id programatically, or how to convert String name to number?

There is some tool in the web
And it do this. Therefore i think there is some way to do that using API.

Rachel Joss

unread,
Sep 14, 2021, 2:05:08 PM9/14/21
to Etsy API
Hello! 

You now have to make 2 calls, first to /application/shops?shop_name={SHOP_NAME}. Which will return the shop object with the shop_id. Then you can use the shop_id for other api calls.

Also, I see you are doing OAuth2 in Google App Script... I am having issues getting app script to work with Etsy API OAuth2. I am trying to setup a webapp and do a basic OAuth2 flow using the google OAuth2 library, but getting an error related to the state token. I was wondering since you have this working on app script if you can help me with the OAuth issue as I am a bit lost. I see the state token being passed with the same value in the authorization url and the callback. I would greatly appreciate it! Happy to converse via email if that works better for sharing code etc.


Golden Owl Admin

unread,
Oct 20, 2021, 1:04:30 PM10/20/21
to etsy-...@googlegroups.com
Hi!
Did you solved your question?

--
You received this message because you are subscribed to a topic in the Google Groups "Etsy API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/etsy-api-v2/UtN_a_vXhAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to etsy-api-v2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/etsy-api-v2/40402ef5-6223-44dd-9541-6d9c7cf245a5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages