Learn R Programming

spotifyr (version 1.0.0)

get_playlist_tracks: Get tracks from one or more playlists

Description

This function returns tracks from a dataframe of playlists on Spotify

Usage

get_playlist_tracks(playlists, access_token = get_spotify_access_token())

Arguments

playlists

Dataframe containing the columns `playlist_num_tracks`, `playlist_tracks_url`, `playlist_name`, and `playlist_img`, corresponding to Spotify playlists. Can be output from spotifyr::get_user_playlists()

access_token

Spotify Web API token. Defaults to spotifyr::get_spotify_access_token()

Examples

Run this code
# NOT RUN {
playlists <- get_user_playlists('barackobama')
playlist_tracks <- get_playlist_tracks(playlists)
# }

Run the code above in your browser using DataLab