GetCategoryPath

From Wiki

Jump to: navigation, search

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
                )

        )

)

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button