question

gooddeals512 avatar image
0 Likes"
gooddeals512 asked ·

cannot run shopping api by oauth

I use X-EBAY-API-IAF-TOKEN:{access_token} as header. I get response "Application ID invalid.". But if I change back to X-EBAY-API-APP-ID, I can get normal response. May someone please help?

shopping api
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.

gooddeals512 avatar image
0 Likes"
gooddeals512 answered ·

Yes. I use the access token in other Restful API now. And I put correct access token for header X-EBAY-API-IAF-TOKEN. If I use incorrect token, it show response as "Invalid token. Please specify a valid token as HTTP header" .

·
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.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @gooddeals512 ,

For making the Shopping API, you need to authenticate with an OAuth application access token using the X-EBAY-API-IAF-TOKEN HTTP.

See here https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html for the The client credentials grant flow topic for more information on generating and managing OAuth application access tokens .

Also, please see "Making an API Call" section for Shopping API mentioned below, to know more about making the call.
Ref: https://developer.ebay.com/devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html

Application access token expires in 7,200 seconds, meaning this token is valid for two hours from the time it was generated. For continued access after the token expires, you must mint a new token.


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

Best regards ,
eBay Developer Support

·
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.