GetCategoryPath
From Wiki
The 'getCategoryPath' API request will return the categories as a path (breadcrumb) from the main tree down to the specified category.
Parameters
Element |
Type |
iCategoryId required |
The ID of the category
Value Type: int |
iAdult optional |
Allow adult content
Value Type: int |
Response
oCategory |
Requested Category objects in the path for the given category ID
Value Type: Category |
Example Request (parameters)
$aParams3 = array('iCategoryId' => 579); $oResponse = $oClient->call('getCategoryPath', $aParams3);
Example Response
stdClass Object ( [oCategory] => Array ( [0] => stdClass Object ( [iId] => 634 [sName] => Entertainment [sDescription] => Entertainment [iAdult] => 0 ) [1] => stdClass Object ( [iId] => 521 [sName] => Video Gaming [iParentId] => 634 [sDescription] => Video Gaming [iAdult] => 0 ) ) )