Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] getPlaylist

Christopher Nelson edited this page Dec 22, 2016 · 5 revisions

getPlaylist(pid[, callback])

Returns a playlist by ID.


Parameters

pid number

ID of the playlist to retrieve.

callback function (optional)

Callback function to be called with data (Playlist Object if playlist is found; otherwise null) from server.


Returns

null


Example

// Get playlist with ID 123456
bot.getPlaylist(123456);

// If playlist is found
{
      "active": true,
      "count": 10,
      "id": 123456,
      "name": "My Playlist 123456"
}
// Otherwise
null
Clone this wiki locally