Description Usage Arguments Value Author(s) Examples
View source: R/get_artists_albums.R
This function returns an artist's discography on Spotify.
1 2 | get_artist_albums(artist_name, album_type = "album", limit = 50,
offset = 0, access_token = DSpoty::get_spotify_access_token())
|
artist_name |
String of artist name. |
album_type |
Character vector of album types to include. Valid values are "album", "single", "appears_on", and "compilation". Defaults to "album". |
limit |
Integer indicating the max number of artists to return. Defaults to 50, max of 50. |
offset |
Integer indicating the offset of the first artist to return. Defaults to 0 (Spotify's API default value). |
access_token |
Spotify Web API token. Defaults to DSpoty::get_spotify_access_token() |
Returns a data frame with all the albums of the selected artist
Alberto Almuiña
1 2 3 4 | ## Not run:
albums <- get_artist_albums('radiohead')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.