Friday 4 March 2016

Get Category and Subcategory Hierarchy From Ebay

You can get the updated category and subcategory list from Ebay !

  • Create the application on http://developer.ebay.com
  • Generate the Appid
  • Copy Appid and paste below
NOTE :-
$url= 'http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=APPID&siteid=203&CategoryID=-1&version=729&IncludeSelector=ChildCategories';
    $sXML = download_page($url);
    $oXML = simplexml_load_string($sXML);
    $cat_id=array();
    foreach($oXML->CategoryArray->Category as $category)
    {
        if($category->CategoryID!="-1")
        {
            $category->CategoryName;
            $category->CategoryID;
        }
    }
 

No comments:

Post a Comment