
Video Upload using PHP example, setting value for Author
Hello,
As you know, there are metadata fields for every video stored using BOTR. One such field can be found on the Metadata tab and is called "Author" - if you are not familiar, on the Metadata tab you will find Author, Description, Link, and other custom properties.
After the video is uploaded, I will be able to 'update' the values of the video, for example: Change the title, add a description, change the author or thumbnail, etc...
If I wanted to set an Author during UPLOAD, how can this be done using the PHP API example for upload? What about also a custom variable and value?
Author: Jeremy
Custom1: Value1
The most important piece of the upload code is
bc.. <?php
require_once('botr/init_api.php');
# Do the API call to build an upload URL.
# The 'token' MUST be the last parameter for upload progress to work.
$response = $botr_api->call('/videos/create');
$token = $response['link']['query']['token'];
if ($response['status'] == 'error') { die(print_r($response)); }
$url = 'http://'.$response['link']['address'].$response['link']['path'];
$url .= '?key='.$response['link']['query']['key'];
$url .= '&api_format=xml';
$url .= '&redirect_address=http://'.$_SERVER["SERVER_NAME"].'/uploadstatus.php';
$url .= '&token='.$token;
?>
Could you help me add the Author field and value, and Custom field and value, into the upload code here?
Thank you!
*Note: The actual uploader and upload status page implemented on my site are working great!*
and I do not see a place where I could throw in additional fields here.