Description Usage Arguments References Examples
Create a Playlist Create a playlist for a Spotify user. (The playlist will be empty until you add tracks.)
1 | create_playlist(user_id, name, ...)
|
user_id |
The user's Spotify user ID. |
name |
Required. The name for the new playlist, for example "Your Coolest Playlist". This name does not need to be unique; a user may have several playlists with the same name. |
1 2 3 | set_tokens()
user_auth()
create_playlist(user_id = 'rweyant', name = 'spotifyr-test')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.