question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended asked

Invalid access token

Hi I have been trying to do a basic search(see below), it says "message": "Invalid access token", in the response body, all I did was insert the values for my token & iphone.. Im trying to figure out why I get the error BASIC SEARCH page address = https://developer.ebay.com/DevZone/build-test/test-tool/default.aspx?index=0&env=sandbox&api=browse&call=item-item_id__GET&variation=json# Environment: SandboxProduction AppID/ClientID:ja..removed for security..7 Select Site ID 0 (usa) Select API browse api Select an API call getitem Token A..removed for security. Spans several lines I used a auth'n auth one.+ https://api.sandbox.ebay.com/buy/browse/v1/item/{iphone} Http headers Authorization:Bearer A+..removed for security. Spans several lines I used a auth'n auth one+ Content-Type:application/json X-EBAY-C-ENDUSERCTX:contextualLocation=country=<2_character_country_code>,zip=,affiliateCampaignId=,affiliateReferenceId= Call Response Need help? Get advice in the Developer Forums Status: 401 UnauthorizedTime: 745 ms Response Headers content-length:175 content-encoding:gzip date:Tue, 19 Sep 2017 23:55:56 GMT set-cookie:ebay=%5Esbf%3D%23%5E;Domain=. ebay.com;Path=/ content-type:application/json connection:keep-alive Response body "errors": "errorId": 1001, "domain": "OAuth", "category": "REQUEST", "message": "Invalid access token", "longMessage": "Invalid access token. Check the value of the Authorization HTTP request header."
invalid access tokenerror 1001
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

krich_developersupport avatar image
0 Likes"
krich_developersupport answered
@jaiso10, above you say, " I used a auth'n auth [for the token]." To call the RESTful Browse API, you must use an OAuth access token, as described here: https://developer.ebay.com/api-docs/static/oauth-tokens.html
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended answered
Thank you, that has solved my problem :).
· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

can you please share the solution? I'm facing the same issue


0 Likes 0 ·
shashah_8620 avatar image
0 Likes"
shashah_8620 answered
I am facing the similar issue. How did you manage to resolve this?
10 |600

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.