list_available_destinations

List the available destinations to which a user may upload.
This is dependent upon what profile have been supplied to the TubeMogul server.

Explorer

Explore this method

Request URL

http://api.oneload.com/api/v3

HTTP method

GET or POST

Arguments

profileId(optional)digital number of profile id

Example Response

<response name="list_available_destinations" stat="ok" status="ok">
<destinations count="3">
 <destination>
  <id>1</id>
  <name>My first destination</name>
 </destination>
 <destination>
  <id>2</id>
  <name>My second destination</name>
 </destination>
 <destination>
  <id>5</id>
  <name>My third destination</name>
 </destination>
</destinations>
</response>

Error Codes

Standard error codes plus:

130 : Either the upload profile is deleted or does not belong to the account.

Example Code

<?
# Your user token
$user_token '';

# Your partner ID
$partner_id '';

# Your secret key
$secret_key '';

$method 'listAvailableDestinations';

$now time();

$apihost 'http://api.oneload.com/api/v3';

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