new User( spotify, data )

Description

Represents a user.

Parameters
Name Type Description
spotify Spotify

The spotify client.

data object

The user object data.

Details

Members


spotify :Spotify

Description

The spotify client.

Details

Methods


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

Description

Shortcut to follow the user.

Returns
Details

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

Description

Shortcut to unfollow the user.

Returns
Details

following() → {Promise.<(Array.<boolean>|HTTPError|ApiError)>}

Description

Shortcut to check if the current user is following the user.

Returns
Details