Delete single video from playlist

Remove a single video from a playlist

removeVideoPlaylist - Remove a single video from a playlist. Video will not be deleted from the system but only removed from the corresponding playlist. To delete videos from the system see the deleteVideos method.

Description

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

Parameters

@param (array) $_post - Array of post data (required)
@param (int) video_id - Video id (required)
@param (int) partner_id - Site id (required)
@param (int) id - PlaylistVideo id - This is not the Playlist id but the index of the video in the playlist(required)
@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $post = array('video_id'=>1, 'id'=>1, 'partner_id'=>1080);
    print_r($api->removeVideoPlaylist($post));
?>

Result

{"success":true,"status":"success","message":"Video has been removed."}

Get PHP response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $post = array('video_id'=>1, 'id'=>1, 'partner_id'=>1080);
    print_r($api->removeVideoPlaylist($post, true));
?>

Result


stdClass Object ( [success] => 1 [status] => success [message] => Video has been removed. )