| add_tracks_to_playlist | R Documentation | 
Add one or more tracks to a user’s playlist.
add_tracks_to_playlist(
  playlist_id,
  uris,
  position = NULL,
  authorization = get_spotify_authorization_code()
)
| playlist_id | Required. The Spotify ID for the playlist. | 
| uris | Optional. A character vector of
Spotify track URIs to add.
For example:  | 
| position | Optional. Integer indicating the position to insert the tracks,
a zero-based index. For example, to insert the tracks in the first position:
 | 
| authorization | Required. A valid access token from the Spotify Accounts service.
See the Web API authorization Guide for more details. Defaults to  | 
The response from the Spotify Web API on the
POST request, with a meaningful error message if the operation was not successful.
Other playlist functions: 
change_playlist_details(),
check_users_following(),
create_playlist(),
get_my_playlists(),
get_playlist(),
get_user_playlists(),
remove_tracks_from_playlist(),
tidy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.