open-api icon indicating copy to clipboard operation
open-api copied to clipboard

Unable to find a user id to add provisional users

Open bpyzikvc opened this issue 3 years ago • 1 comments

My app is awaiting approval for full access but in the meantime I would like to add some users to it. I found a thread here: https://groups.google.com/g/etsy-api-v2/c/_TA7DrM2uSU that shows how to add provisional users but I am unable to find the user id to use. I tried the id from the url on a user's page but the api only takes an integer. Where can I find this value?

bpyzikvc avatar Feb 03 '22 16:02 bpyzikvc

I have found that if you browse a page whilst logged in, e.g. your shop page, https://www.etsy.com/uk/shop/xxxxxxxx and then inspect the page with Chrome debug tools (F12) you'll see the first element is:

<html lang="en-GB" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml" data-user-id="551762807" data-user-login-name="exfkohif5jbzf464" data-user-is-seller="true" style="--vh:9.29px;">

and in that you can see data-user-id="551762807", I think that is the user id (551762807 in this case) that the API works with.

FloppyChips avatar May 26 '22 08:05 FloppyChips