Description Usage Arguments Value Author(s) Examples
View source: R/get_track_popularity.R
This function that returns the popularity of a track uri on Spotify.
1 2 | get_track_popularity(track_uri, limit = 1, offset = 0,
access_token = DSpoty::get_spotify_access_token())
|
track_uri |
A track uri corresponding to one track in Spotify. |
limit |
Integer indicating the max number of artists to return. Defaults to 1, 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 an integer vector with the popularity value (0-100).
Alberto Almui?a
1 2 3 4 | ## Not run:
popularity <- get_track_popularity('0FgNSsaSZTvbLXUumSO8LQ')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.