cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Production oauth token expires after one hour

I tried getting fresh token from my application but failed how can I get a oauth token from my python based application or longer the duration of my oauth tokens?

Message 1 of 2
latest reply
1 REPLY 1

Production oauth token expires after one hour

The OAuth access tokens are good for two hours.

 

If getting an application token (client_credential) for accessing public data, you would need to mint a new token every two hours.

https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html 

 

If getting a user token for private data (authorization_code), the authentication process will return both a 2-hour access token and an 18-month refresh token that is linked to the user account. When the 2-hour token expires, use the refresh token to mint another 2-hour token.

https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html  

 

There are some Python SDKS here:

https://developer.ebay.com/develop/ebay-sdks   

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 2
latest reply