Delete videos

Delete videos

deleteVideos - Delete single or multiple video items. Deleted videos which belong to any of your playlists will be removed from all playlist items automatically.

Description

mixed deleteVideos ( array $_post , bool $encode );
This method is type of POST.

Parameters

@param (array) $_post - Array of post data (required)
@param (int) partner_id - Site id (required)
@param (string) ids - CSV of video ids (required)
@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $post = array('partner_id'=>1, 'ids'=>'1,2,3,4');
    print_r($api->deleteVideos($post));
?>

Result

{"success":true,"status":"success","message":"The Video has been saved.","redirect":"\/videos\/index\/"}

Get PHP response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $post = array('partner_id'=>1, 'ids'=>'1,2,3,4');
    print_r($api->deleteVideos($post, true));
?>

Result

stdClass Object ( [success] => 1 [status] => success [message] => The Video has been saved. [redirect] => /videos/index/ )