question

weis-wyat avatar image
0 Likes"
weis-wyat asked

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?
apitokenPHPuser tokentestingapi test tooltooluser
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
pmb_2005 avatar image
1 Like"
pmb_2005 answered
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][1]), 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. [1]: http://developer.ebay.com/devzone/xml/docs/Reference/ebay/GetTokenStatus.html
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.