1
이베이 (Ebay) API를 사용하여 이베이에서 모든 하위 카테고리를 가져와야합니다. 아래 코드는 루트 레벨 카테고리 만 얻는 것입니다. 부모 카테고리의 하위 카테고리를 얻을 수있는 방법을 알려줄 수 있습니까?하위 카테고리 얻기 이베이 (Ebay) API
function curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FAILONERROR,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
$url= 'http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=3b5sdsdsdsd&siteid=0&CategoryID=1&version=949IncludeSelector=ChildCategories';
$xml = curl($url);
$xml = simplexml_load_string($xml);
print_r($xml);