GetCategory

From Wiki

Jump to: navigation, search

The 'getCategory' API request will return a predefined number of category objects. If no category IDs are passed then no category objects will be returned.

Parameters


Element

Type

iCategoryId required

The ID's of the categories to get

Value Type: int

iAdult optional

Allow adult content

Value Type: int


Response


oCategory

Objects of type Category

Value Type: Category


Example Request (parameters)


$aParams1 = array('iCategoryId'	=> 69);

$oResponse = $oClient->call('getCategory', $aParams1);


Example Respomse


stdClass Object
(
    [oCategory] => stdClass Object
        (
            [iId] => 69
            [sName] => Storage Media
            [iParentId] => 61
            [sDescription] => Storage Media
            [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