get_album_popularity: Get Album Popularity

Description Usage Arguments Value Author(s) Examples

View source: R/get_album_popularity.R

Description

This function returns the popularity of an album on Spotify.

Usage

1
2
get_album_popularity(album_uri, limit = 1, offset = 0,
  access_token = DSpoty::get_spotify_access_token())

Arguments

album_uri

An album uri from Spotify to search for or a group of albums uris separated by a comma

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

Value

Returns an integer vector with the popularity value (0-100).

Author(s)

Alberto Almui?a

Examples

1
2
3
4
## Not run: 
get_album_popularity('1T2uKSyUf7DBWOABtsmYLM')

## End(Not run)

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