Use this endpoint to edit specific video under your account.
apiv2/videos/edit/.json
This method is type of POST and will not receive any GET parameters.
Parameters:
Name | Type | Description |
---|---|---|
data[Video][site_id] *required | integer | Site id in Brid.tv |
data[Video][name] *required | string | Title of the video |
data[Video][mp4] *required | string | Url to the MP4 file - SD rendition |
data[Video][mp4_ld] | string | Url to the MP4 file - LD rendition |
data[Video][mp4_hsd] | string | Url to the MP4 file - HSD rendition |
data[Video][mp4_hd] | string | Url to the MP4 file - HD rendition |
data[Video][description] | string | Description of the video |
data[Video][tags] | string | Comma separated video tags |
data[Video][clickthroughUrl] | string | Set a custom click-through URL for your video |
data[Video][channel_id] | integer | Set the ID of the channel you want this video to belong to |
data[Video][age_gate_id] | integer | Everyone -1, Mature rated - 2, Adult rated - 3 |
data[Video][publish] | string | Publish date in format DD-MM-YYYY |
data[Video][kill_date] | string | Kill date in format DD-MM-YYYY |
data[Video][image] | string | URL to your custom starting snapshot |
data[Video][rejected] | bool | Set a flag for a video which will disable this video to be displayed in any playlist |
<?php
require_once('lib/BridApi.php');
try {
$api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
$post = array('data[Video][site_id]'=>'123456', 'data[Video][id]'=>'1', 'data[Video][name]'=>'Video title', 'data[Video][description]'=>'Description of the video');
$return = $api->post(['videos', 'edit', 13085], $post);
print_r($return);
}
catch(Exception $e) {
echo $e->getMessage();
}
?>
BridApi.php is a small library we provide in our git repository which allows you to quick-start your implementation so we advise you to use it. These examples are made with this library in mind. Make sure to substitute and use your own authorization token when trying out these examples.