Getting A Playlist By ID

Wraps around this Spotify API endpoint

How to use

After creating a Spotify object, you can use .Playlists.GetPlaylist() to get a playlist by its Spotify ID.

This will return a Playlist Object which can then be played/edited by the methods outlined on this page.

Example

This example will:

A) Create a Spotify object (which will prompt the user for authorization if it is not already done)

B) Get the playlist Epic Gamer Music by Enrique Triana

C) Try to play Epic Gamer Music on the active device

Spoofy := new Spotify()
EpicGamerMusic := Spoofy.Playlists.GetPlaylist("2PJPSL6yYJA3ygxr5hADPw")
EpicGamerMusic.Play()