open-api
open-api copied to clipboard
Unable to find a user id to add provisional users
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?
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.