App ID
Dear community, I'm trying to use API and testing in on Jupyter.
I've been getting this message when trying to execute the simplest find API calls:
Iater on, I specifically set the domain to svcs.sandbox.ebay.com when creating the connection, but still get the same error in a different format:
I wonder what is wrong?
I have my app id already and still seems that it is not binding with eBay API authentication.
Any insights would be very much appreciated
6 comments
alakser
OP3 years ago@shipscript
This is the output running from Jupyter (python):
alakser
OP3 years ago · Edited@shipscript
Thank you for your answer.
I do not get an authentication error any longer, but every single query that I try with a successful status, gets me back 0 results.
The authentication error disappeared after 2 day. And I thought it was just inactive.
I tried to use your settings within python and got an invalid seller name error. Then using the plain URL that you kindly shared and I got a white page. Nothing else.
Still puzzled by this API
shipscript
·3 years ago@alakser
The Finding API is one of the simpler to use because it doesn't require token management and only needs the AppID. Let me offer a basic URL version of the Finding API so that you can test your AppID and see some success. Add your own AppID below and then pull these lines together as a single URL and paste into your browser.
Your browser should echo back 10 of my active listings. That will verify that your AppID is valid, and you will see some of the basic settings that might be needed when you set up your header within Jupyter (which I think are all the names in full uppercase).
five_notch_trading_post
·3 years agoThe InvalidHeader error is from python, it is saying that your app id is None, so it is not getting set correctly to that header.
You will have to look at the code where that header is being set and investigate why it is not being set correctly.
Also, depending on how you are using it, each time you start it up fresh, unless you are loading them, things you did from a prior session are probably not still around, so make sure you are either doing all the steps each time. You can also do something like a print() on variables you are about to use to verify that they are set, until you are more comfortable with how things are working behind the scenes.
alakser
OP3 years ago@five_notch_trading_post
Thank you for your reply. The authentication issue and invalid header disappeared after second day. I thought my APPID was inactive.
I get a successful status code but no matter what I search, I always get zero results.
five_notch_trading_post
·3 years agoThe URL given should work, you can try stripping it down further and this should return an error in a browser, "6" if your appid is correct, "11002" if not.
You can then try appending the other parts mentioned to the end to get a feel for it.
Also if you are getting an error regarding a store (if you are trying findItemsIneBayStores), you must use the title of the store from it's ebay.com/str/ page, which is different from the id of the store in the url.
As far as python,
There are a few approaches:
You can do the url method using url params with a GET method and no headers:
Or a POST method with an xml payload and headers:
I believe mixing some of the items between header and payload will work as well (so long as the docs indicate support).
Also another side note, since credentials are sensitive information, if using jupyter, you should be using a locally installed jupyter instance, and not one that is served from their site.