list_uploads

List all of a TubeMogul user's uploaded videos.

Explorer

Explore this method

Request URL

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

HTTP method

GET or POST

Arguments

page (integer) - Optional, default is 1
The desired page of results to return.
per_page (integer) - Optional, default is 100
Number of items to show per page of results.

Example Response

<?xml version="1.0" encoding="utf-8" ?>
<response stat="ok">
 <uploads count="3" page="1" perPage="100">
      <upload>
       <uploadid>3089</uploadid>
        <title>Hello</title>
        <tags>these, are, tags</tags>
        <category>Family & Kids</category>
        <description>Hello this is a video on the street near my house</description>
        <thumb>http://www.tubemogul.com/thumbs/3089.jpeg</thumb>
        <upload_time>2009-04-01 20:10:24</upload_time>
        <private_notes>299294</private_notes>
      </upload>
      <upload>
        <uploadid>3291</uploadid>
        <title>Kitty</title>
        <tags>cat, pets, home, furball</tags>
        <category>Animals & Pets</category>
        <description>My kitten chases a cotton ball</description>
        <thumb>http://www.tubemogul.com/thumbs/3291.jpeg</thumb>
        <upload_time>2009-04-03 12:21:19</upload_time>
        <private_notes>299292</private_notes>
      </upload>
 </uploads>
</response>

Error Codes

Standard error codes plus:

10 : This user has not uploaded any videos or they are in the process of uploading.

Example Code

<?
# Your user token
$user_token '';

# Your partner ID
$partner_id '';

# Your secret key
$secret_key '';

$method 'listUploads';

$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>