question

darrebaltoze0 avatar image
0 Likes"
darrebaltoze0 asked

eBay SDK for PHP Trading API getSellerList

Hello All! I'm new to eBay's API, but not APIs in general. I'm getting the OAuth token just fine. Using the PHP SDK, I'm trying to use the getSellerList. Since there is no clear example, I took the example for GetMyeBaySellingRequestType from https://github.com/davidtsadler/ebay-sdk-examples/blob/master/trading/11-get-my-ebay-selling.php I checked the database and even outputting the access token. It's there. But when I run the example, in sandbox, I always get: Auth token is invalid. Validation of the authentication token in API request failed. I've looked and looked for a solution for over a week, trying various things. Problem is I'm getting conflicting message. One says you need the Auth'n'Auth token and another says OAuth works for everything and we should be migrating to OAuth. This say needs Auth'n'Auth: answered Jun 28, 2017 https://forums.developer.ebay.com/questions/21714/authtoken-invalid.html This says OAuth works: answered Dec 3 '17 https://stackoverflow.com/questions/45995944/ebay-oauth-and-auth-auth-tokens-together So, which is it? Does the Trading API, in a RESTful state, use OAuth or Auth'n'Auth? Thanks!
trading api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
yazhou_developersupport avatar image
0 Likes"
yazhou_developersupport answered
Hello darrebaltoze0, For these old APIs like Searching APIs, Traditional Shopping/Buying APIs , Traditional Selling APIs, After Sale APIs, they are only using Auth & Auth token. https://go.developer.ebay.com/api-documentation For new RESTful APIs like Sell APIs, Buy APIs (Beta), Commerce API (Beta), they are only using OAuth token. https://go.developer.ebay.com/api-documentation Regarding your case, GetSellerList belongs to Trading API which means it is only using Auth & Auth token. You need to generate Auth & Auth toke to make the call in your code. Hope this can help you. And please let me know if you have any questions. Best Regards
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.