07-26-2023 02:53 PM
I'm new to this api and trying to access the shopping api with python. It requires me to set an HTTP header of
07-26-2023 05:42 PM
Using the Shopping API is a two step process, each requiring credentials.
The first step is to submit your base64 developer credentials (clientID:clientSecret) to generate a new OAuth token, which expires within 2 hours, or to refresh an expiring token that has been stored on your website for that purpose. eBay prefers that developers reuse a token until it expires, rather then generating a new token for each call.
https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html
The second step is to make a call to the Shopping API using that token in the header.
X-EBAY-API-IAF-TOKEN : token_string
I have a fully working PHP example here, which may help you work through the logic and help to create the headers for both steps.