Members
-
spotify :Spotify
-
Description
The spotify client.
Details
Methods
-
albums( options ) → {Promise.<(Array.<Album>|HTTPError|ApiError)>}
-
Description
Shortcut to get the albums of an artist.
Parameters
Name Type Description options
ArtistAlbumsOptions Returns
Details
-
follow() → {Promise.<(Status|HTTPError|ApiError)>}
-
Description
Shortcut to follow the artist.
Returns
Details
-
unfollow() → {Promise.<(Status|HTTPError|ApiError)>}
-
Description
Shortcut to unfollow the artist.
Returns
Details
-
following() → {Promise.<(Array.<boolean>|HTTPError|ApiError)>}
-
Description
Shortcut to check if the current user is following the artist.
Returns
Details
-
top( country ) → {Promise.<(Array.<Track>|HTTPError|ApiError)>}
-
Description
Shortcut to get the top tracks of an artist.
Parameters
Name Type Description country
string An ISO 3166-1 alpha-2 country code.
Returns
Details
-
related() → {Promise.<(Array.<Artist>|HTTPError|ApiError)>}
-
Description
Shortcut to get related artists.
Returns
Details