Use this endpoint to get list of videos for your account.
apiv2/videos/list/<SITE_ID>/<PAGINATION>.json
apiv2/videos/list/<SITE_ID>/<SEARCH_PARAM>.json
This method is type of GET but will accept POST requests as well.
SITE_ID is an integer ID of your web property/site in Brid CMS.
PAGINATION is an optional string which you can set to get a paginated list of your entire video library.
SEARCH_PARAM is an optional string which you can set to get video result by video title or video ID.
Parameters:
Name | Type | Description |
---|---|---|
site_id *required | integer | Integer site id |
pagination | string | Accepted values: page:X where X is the pagination number |
limit | string | Change the number of videos returned by the API. Default is set to 5. |
data[Video][search] | string | Accepted values: "some video title", "12345" |
<?php
require_once('lib/BridApi.php');
try {
$api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
$return = $api->get(['videos', 'list', 123456]);
print_r($return);
}
catch(Exception $e) {
echo $e->getMessage();
}
?>
<?php
require_once('lib/BridApi.php');
try {
$api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
$return = $api->get(['videos', 'list', 123456, 'page:2']);
print_r($return);
}
catch(Exception $e) {
echo $e->getMessage();
}
?>
<?php
require_once('lib/BridApi.php');
try {
$api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
$post = array('limit'=>'20');
$return = $api->post(['videos', 'list', 123456], $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 and Site ID when trying out these examples.