Ebay API with description

How to get the ebay API to return a description?

I have code that calls an API call as follows:

http://svcs.ebay.com/services/search/FindingService/v1? callname=findItemsAdvanced& responseencoding=XML& appid=appid& siteid=0& version=525& QueryKeywords=keywords; 

It returns elements, but the full description is missing. I do not see the next step to ask for detailed descriptions.

+6
source share
2 answers

I use the following (a very simple function to get the item detail from ebay):

 function eBayGetSingle($ItemID){ $URL = 'http://open.api.ebay.com/shopping'; //change these two lines $compatabilityLevel = 967; $appID = 'YOUR_APP_ID_HERE'; //you can also play with these selectors $includeSelector = "Details,Description,TextDescription,ShippingCosts,ItemSpecifics,Variations,Compatibility"; // Construct the GetSingleItem REST call $apicall = "$URL?callname=GetSingleItem&version=$compatabilityLevel" . "&appid=$appID&ItemID=$ItemID" . "&responseencoding=XML" . "&IncludeSelector=$includeSelector"; $xml = simplexml_load_file($apicall); if ($xml) { $json = json_encode($xml); $array = json_decode($json,TRUE); return $array; } return false; } 
+2
source

Source: https://habr.com/ru/post/894677/


All Articles