get_artist_tracks: Get Artist Tracks

Description Usage Arguments Value Author(s) Examples

View source: R/get_artist_tracks.R

Description

This function returns all the tracks of an artist.

Usage

1
2
get_artist_tracks(artist_name, limit = 50, offset = 0,
  access_token = DSpoty::get_spotify_access_token())

Arguments

artist_name

String of artist name.

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

Value

Returns a data frame with all the tracks of the selected artist.

Author(s)

Alberto Almui?a

Examples

1
2
3
4
## Not run: 
tracks <- get_artist_tracks('Shakira')

## End(Not run)

DSpoty documentation built on March 26, 2020, 7:13 p.m.