create_playlist {spotifyr} | R Documentation |
Create Playlist for User
Description
Create a playlist for a Spotify user. The playlist will be empty until you add tracks.
Usage
create_playlist(
user_id,
name,
public = TRUE,
collaborative = FALSE,
description = NULL,
authorization = get_spotify_authorization_code()
)
Arguments
user_id |
Required. The user's Spotify user ID. |
name |
Required. String containing the name for the new playlist, for example |
public |
Optional. Boolean. Defaults to |
collaborative |
Optional. Boolean. Defaults to |
description |
Optional. String containing the playlist description as displayed in Spotify Clients and in the Web API. |
authorization |
Required. A valid access token from the Spotify Accounts service. See the Web API authorization Guide for more details. Defaults to |
Value
The response from the Spotify Web API on the POST
request, with a meaningful
error message if the operation was not successful.
See Also
Other playlist functions:
add_tracks_to_playlist()
,
change_playlist_details()
,
check_users_following()
,
get_my_playlists()
,
get_playlist()
,
get_user_playlists()
,
remove_tracks_from_playlist()
,
tidy()