list_categories

List all of the categories a video can be classified under.

Explorer

Explore this method

Request URL

http://api.tubemogul.com/api/v3/

HTTP method

GET or POST

Arguments

None

Example Response

<?xml version="1.0" encoding="utf-8" ?>
<response stat="ok">
  <categories count="14">
    <category value="13">Animals & Pets</category>
    <category value="1">Arts & Animation</category>
    <category value="14">Autos</category>
    <category value="3">Comedy</category>
    <category value="4">Entertainment</category>
    <category value="18">Family & Kids</category>
    <category value="16">Instructional/How to/DIY</category>
    <category value="5">Music</category>
    <category value="6">News & Blogs</category>
    <category value="9">Science & Technology</category>
    <category value="10">Sports</category>
    <category value="11">Travel & Places</category>
    <category value="12">Video Games</category>
    <category value="15">Vlogs & People</category>
  </categories>
</response>

Error Codes

Standard error codes.

Example Code

<?
# Your user token
$user_token '';

# Your partner ID
$partner_id '';

# Your secret key
$secret_key '';

$method 'listCategories';

$now time();

$apihost 'http://api-upload.tubemogul.com/index.php';

$poststring "date=".$now.
              
"&userToken=".urlencode($user_token).
              
"&partnerID=".urlencode($partner_id).
              
"&method=".$method;

$hash sha1($secret_key.$poststring);

$poststring .= "&hash=".$hash;

echo 
$poststring;
?>

<br /><br />
<form action='<? echo $apihost?>' method='post'>
<input type='hidden' name='date' value='<? echo $now?>' />
<input type='hidden' name='userToken' value='<? echo $user_token?>' />
<input type='hidden' name='partnerID' value='<? echo $partner_id?>' />
<input type='hidden' name='method' value='<? echo $method?>' />
<input type='hidden' name='hash' value='<? echo $hash?>' />
<input type='submit' value='submit!' />
</form>