question

alexne-3154 avatar image
0 Likes"
alexne-3154 asked

GetMultipleItems with oAuth2

Hello since eBay from July will not support old credential, now I try to use Header with token.

When I try to get item info via old Credential all is ok.

When I try to use oAuth token receive next error : <h2>AXIS error: invoking via GET</h2> <p>No method!</p>

Request:

GET request https://open.api.ebay.com/shopping?IncludeSelector=Details&ItemID=293987682689
Header:

X-EBAY-API-IAF-TOKEN -> Bearer xxxxxxxxxx

X-EBAY-API-VERSION -> 1033

X-EBAY-API-CALL-NAME -> GetMultipleItems

X-EBAY-API-SITE-ID -> 77

X-EBAY-API-RESPONSE-ENCODING -> JSON


Old request is the same, only instead of header use url param.

Can somebody help me with this problem ?

oauth2shopping-apiaxis
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.

clickimusprime avatar image
0 Likes"
clickimusprime answered

You can use POST or GET.

The reason you are getting "no method" error with GET is that you don't have the method/callname on the URL ( &callname=GetMultipleItems ). GET expects the parameters on the URL. POST expects them in the headers.

Move the parameters back to the URL except for the APPID, which goes in the header.

GET works fine with just the single token header and the rest of the settings defined in the URL.

X-EBAY-API-IAF-TOKEN -> Bearer xxxxxxxxxx

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

thnx works fine.
0 Likes 0 ·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @alexne-3154,

You need to use POST method for executing the call while you are using GET method currently. Can you please try to execute the call with POST method?

Ref: https://developer.ebay.com/devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html

Best Regards ,
eBay Developer Support

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

Hi.

When I send POST, eBay answer with status code 200 and empty result.

0 Likes 0 ·

Hi @alexne-3154,

You need to use POST method for executing the call while you are using GET method currently. Can you please try to execute the call with POST method?

Ref: https://developer.ebay.com/devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html.PrepaidCardStatus

Best Regards ,
eBay Developer Support

Thanks for this. This worked exactly as expected.

0 Likes 0 ·

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.