This function returns tracks from a dataframe of playlists on Spotify

get_playlist_tracks(playlists, access_token = get_spotify_access_token(),
  parallelize = FALSE, future_plan = "multiprocess")

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()

parallelize

Boolean determining to run in parallel or not. Defaults to TRUE.

future_plan

String determining how `future()`s are resolved when `parallelize == TRUE`. Defaults to multiprocess.

Examples

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