Learn R Programming

spotifyr (version 1.0.0)

get_album_tracks: Get tracks from one or more albums on Spotify

Description

This function returns tracks from a dataframe of albums on Spotify

Usage

get_album_tracks(albums, access_token = get_spotify_access_token())

Arguments

albums

Dataframe containing a column `album_uri`, corresponding to Spotify Album URIs. Can be output from spotifyr::get_albums()

access_token

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

Examples

Run this code
# NOT RUN {
artists <- get_artists('radiohead')
albums <- get_albums(artists$artist_uri[1])
get_album_tracks(albums)
# }

Run the code above in your browser using DataLab