Playlist data

Get playlist data

playlist - Return playlist data by playlist id.

Description

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

Parameters

@param (int) $id - Playlist id (required)
@param (int) $page - Page number (optional)
@param (int) $items - Number of items per page (optional)
@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

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

Get PHP response:

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