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

[actions] getPlaylistMedias

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

getPlaylistMedias(pid[, callback])

Returns all songs in a playlist.


Parameters

pid number

ID of the playlist to retrieve the songs from.

callback function (optional)

Callback function to be called with data (Array of songs) from server.


Returns

null


Example

// Get songs from playlist with ID 123456
bot.getPlaylistMedias(123456);
/*
// if playlist contains song(s)
{
      "author": "An author",
      "cid": "AAAAAA-AAA",
      "duration": 150,
      "format": 1,
      "id": abcdef,
      "image": "default.jpg",
      "title": "A song title"
}
// else
{
}
*/
Clone this wiki locally