new Album( spotify, data )

Description

Represents the an album.

Parameters
Name Type Description
spotify Spotify

The spotify client.

data object

The album object data.

Details

Members


spotify :Spotify

Description

The spotify client.

Details

Methods


play( options ) → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to play the album.

Parameters
Name Type Description
options StartOptions
Returns
Details

save() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to save the album.

Returns
Details

remove() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to remove the album.

Returns
Details

starred() → {Promise.<(Status|HTTPError|ApiError)>}

Description

Shortcut to check if a albums saved in the current Spotify user's library.

Returns
Details