question

memoky avatar image
0 Likes"
memoky asked ·

REST API - application token for listing products and updating inventory

I'd like to create a service in my application, which creates products listing and updates inventory on ebay using the data in my database. In my understanding you are able to request an oauth application token with using client ID and client secret ([doc][1]) and this way you can obtain a working token without popping up a window to login to your (or user) ebay account and ask for permission. However application tokens are really limited, you cannot ask for a scope for changing products. So you need a user token ([doc)][2] but you are not able to obtain one without showing the ebay login screen to grant permission. Even if I implement the way how it is described, the token expires in 8 hours, so you have to go through the same procedure if you want to do something the other day, or you keep refreshing the token in the background. **So my question: Is there a way to use ebay's new REST api without popping up the login screen of ebay to grant access?** **Second question: In my understanding using the old, xml-based *trading api* involves the same problem, is that right?** [1]: http://developer.ebay.com/devzone/rest/ebay-rest/content/gen-app-token.html [2]: http://developer.ebay.com/devzone/rest/ebay-rest/content/gen-user-token.html
rest apitokenspermissions
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.

memoky avatar image
0 Likes"
memoky answered ·
@itisdesign Hey, I'm the memoky guy. In the meantime I found a work-around (still working on that, so it's uncertain). There is an ebay program, which let's you access your account upload/download products, orders, etc via ftp feeds. It's called Merchant Integration Platform, maybe you could use that too
· Share
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.

itisdesign avatar image
0 Likes"
itisdesign answered ·
@davidtsadler, The forum UI won't let me view your reply, but I did get the email notification containing it. Regarding your question: I used many API operations, like GetOrders and ReviseSellingManagerSaleRecord, by setting the App/Dev/Cert IDs as headers in the requests per the "HTTP Headers (XML API Only)" section [in this doc][1]. [1]: http://developer.ebay.com/DevZone/XML/docs/Concepts/MakingACall.html
· Share
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.

itisdesign avatar image
0 Likes"
itisdesign answered ·
@memoky, I (and others) are trying to do the same thing (manage our own eBay account - not the accounts of others). Please see [this thread][1] Regarding the old XML-based Trading API, it does not require login screens nor user intervention. Regarding the new Buy and Sell API, the [documentation][2] says a request for an "Application" token accepts a list of scopes (not just the default scope). Thus, according to the docs, the new Buy and Sell API also does not require login screens nor user intervention. Please see [my post here][2]. [1]: https://forums.developer.ebay.com/questions/17733/cannot-get-application-access-token-for-ebay-rest.html [2]: http://forums.developer.ebay.com/comments/17793/view.html
· Share
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.