The Spotify.Playlists
static class
Does not wrap around any specific API object/endpoint.
Instead, the Spotify.Playlists
class provides methods that accept raw Spotify IDs and call their web API versions.
Note
This class is 100% static, and new Spotify.Playlists()
will never be valid, and is very likely to break things.
Methods
Method Name | Parameters | Return value | Description |
---|---|---|---|
GetPlaylist |
PlaylistID |
A full Spotify.Playlist object for the given playlist. |
N/A |
PlaylistGetTrackCount |
PlaylistID |
The number of tracks in the given playlist. | N/A |
PlaylistAddTrack |
PlaylistID , TrackID |
None | Tries to add the track with the given ID to the given playlist. |
PlaylistRemoveTrack |
PlaylistID , TrackID |
None | Tries to remove the track with the given ID from the given playlist. |
DeletePlaylist |
PlaylistID |
None | Tries to delete the given playlist |
CreatePlaylist |
PlaylistName , Public , Description |
A new (empty) Spotify.Playlist object |
Creates a new playlist for the logged in user and returns it. |