Playlist data

Get playlist data

playlist - Return playlist data by playlist id.

Description

mixed playlist ( int $id , bool $encode );
This method is type of GET and will not receive any POST parameters.

Parameters

@param (int) $id - Playlist id (required)
@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $playlist_id = 1;
    print_r($api->playlist($playlist_id));
?>

Get PHP response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $playlist_id = 1080;
    print_r($api->playlist($playlist_id, true));
?>