categories.get

Introduction

Get the categories on the current site and filter them using certain parameters.

Parameters

Name Type Description
limit int The number of categories to return
offset int The offset for the first category
ids string A comma delimited list of category IDs to get information about. Leave blank to load all categories.

Using the PHP Library

<?php
$ids
=array(40,41);
$response=$newhaze->api->categories_get($ids,$limit,$offset);
?>

Responses

PHP Response

Array
(
    [0] => stdClass Object
        (
            [id] => 40
            [name] => Action
        )

    [1] => stdClass Object
        (
            [id] => 41
            [name] => Adventure
        )

)

JSON Response

[{"id":"40","name":"Action"},{"id":"41","name":"Adventure"}]


© 2012 NewHaze   Icons by Pixel Mixer   Help