Question by weis-wyat · Jun 21, 2015 at 01:42 AM · usertokenuser tokenapitestingtoolapi test toolPHP
General question about how tokens work
I am making an application for a single user (trading api). Would it work to for me to use the user token tool to generate a token for them and hard-code it into my program? This article seems to imply you can do that: https://ebaydts.com/eBayKBDetails?KBid=2018
Also, I've noticed that you can only store one token at a time. Does this mean you can only have access to one valid user token at any given time, or it this simply for things such as the auto-complete for things like the API test tool?
Answer by pmb_2005 · Jun 21, 2015 at 09:03 PM
While the token tool will only store the last token it generated it can be used to generate multiple tokens for different eBay accounts as long as you copy them from the tool before moving on to the next account you should be fine.
Its worth noting that tokens do expire and will need to be changed periodically (see GetTokenStatus), they may also be revoked by eBay if the associated account has a security breach so hard coding may not be the best idea as it will make it more difficult to change in the future.
People who like this
Your answer

Follow this Question
Related Questions
HOW do I retrieve an user authorization token with PHP?! HOLY CRAP! 4 Answers
Getting user token (oauth) without go to Grant App Access page - alternative flow? 3 Answers
One token for both new and traditional APIs 8 Answers
Accessing ebay api via google apps script 0 Answers
User Token without Refresh Token 0 Answers