question

house.for.home avatar image
0 Likes"
house.for.home asked ·

Auth n Auth token is not working for GetTrafficReport!

Hi everyone, I was trying to get traffic report for my store using gettrafficreport api endpoint but it seems to not work with Auth n Auth token as it was giving an error of invalid token. Then I tried OAuth token and it worked. But the problem is OAuth token expires after few hours and I dont wanna be changing it manually again and again. So is there a way to make it work with Auth n Auth token? or to get a permanent OAuth token? Thanks
oauthgettrafficreport
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
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·
Hi @house.for.home, New restful API requires an OAuth token and GetTrafficReport call is a restful API call. Yes, Oauth token expires after 2 hours, However, you can automate the process of refreshing the toke. To know about the procedure of refreshing the token please go through the link given below: REF: https://developer.ebay.com/api-docs/static/oauth-refresh-token-request.html To know to more about getting and using a User access token via API call please go through the link given below: REF: https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html Best Regards, eBay Developer Support
· Share
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.