Playlist Objects
Wrap around this Spotify API object model.
Note
Playlist objects should only be created with .Playlists.GetPlaylist()
/.Playlists.CreatePlaylist()
unless they are returned by, or included in other objects.
Properties
Key | Value description |
---|---|
description | The description of the the playlist |
id | The Spotify ID of the playlist |
name | The name of the playlist |
uri | The Spotify URI of the playlist |
owner | A User Object representing the owner of the playlist |
public | If the playlist is public or not (true/false) |
tracks | An array of Track Objects that are in the playlist |
Methods
Definition | Description |
---|---|
.AddTrack(TrackIDOrTrackOBJ) |
Takes a Track Object or Track ID and adds it to the playlist |
.RemoveTrack(TrackIDOrTrackOBJ) |
Takes a Track Object or Track ID and removes it from the playlist |
.Play() |
Plays the playlist on the currently active device |
.Delete() |
Deletes the playlist |