question

marcarl99 avatar image
0 Likes"
marcarl99 asked

Using HTTP headers for Shopping API

Im starting to use the Oauth for Shopping API and also using HTTP headers and a curl with PHP.

Im wondering how i should ad the ItemID parameter? Is this how it should be done? Or should i set it later in the curl?

"X-EBAY-API-CALL-NAME"=>"GetItemStatus",
"X-EBAY-API-ITEM-ID"=>"324779427803",

Or should it be specified in the url something like this?


 curl_setopt($ch, CURLOPT_URL, "https://open.api.ebay.com/shopping?itemid=324779427803");
shopping-apixml-php-curl
· 4
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.

the shopping api has 8 different calls, what´s so difficult to let people know, which call u are using ? besides that, where on this page:


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

do u see the header "X-EBAY-API-ITEM-ID" ?

0 Likes 0 ·
It says clear in my example that im using GetItemStatus.

I dont see it anywhere, thats why im asking how to do it? Whats with the attitude?


0 Likes 0 ·

right, apologies! about your header: if it´s not in the documentation, where did you get that from? ;)

0 Likes 0 ·
Show more comments

1 Answer

· Write an Answer
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @marcarl99,

You need to pass the ItemID parameter as part of request and you don't need to pass it on request headers. Please go through the link given below to see the example and to know about executing the API call.


Ref:https://developer.ebay.com/devzone/shopping/docs/callref/GetItemStatus.html#Samples
https://developer.ebay.com/devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.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.