Description Usage Arguments References Examples
Follow a Playlist Add the current user as a follower of a playlist
1 | follow_playlist(owner_id, playlist_id, public = TRUE, ...)
|
owner_id |
The Spotify user ID of the person who owns the playlist. |
playlist_id |
The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID. |
public |
Optional, default true. If true the playlist will be included in user's public playlists, if false it will remain private. To be able to follow playlists privately, the user must have granted the playlist-modify-private scope. |
1 2 3 | set_tokens()
user_auth()
follow_playlist(owner_id = 'jmperezperez', playlist_id = '2v3iNvBX8Ay1Gt2uXtUKUT')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.