Spotify App Api Login
Method Detail
getCapabilities
Get theCapabilities
of a current user. It is useful to call before you make call toPlayerApi.play(String)
: Introduced incom.spotify.protocol.client.RequiredFeatures#FEATURES_V1
- Returns:
CallResult
withCapabilities
of a current user
subscribeToCapabilities
Same asgetCapabilities()
, but subscription. Introduced incom.spotify.protocol.client.RequiredFeatures#FEATURES_V1
- Returns:
Subscription
toCapabilities
of a current user
subscribeToUserStatus
addToLibrary
Adds item to users' library. Supported uris currently include: Track - example: spotify:track:6rqhFgbbKwnb9MLmUQDhG6 Album - example: spotify:album:2VYSDvc0ZdcfkXDcYVjHs6 Introduced incom.spotify.protocol.client.RequiredFeatures#FEATURES_V1
- Parameters:
uri
- to get saved state for- Returns:
- a pending call result that can be used to track the success/failure of this command
removeFromLibrary
Removes item from users library. Supported uris currently include: Track - example: spotify:track:6rqhFgbbKwnb9MLmUQDhG6 Album - example: spotify:album:2VYSDvc0ZdcfkXDcYVjHs6 Introduced incom.spotify.protocol.client.RequiredFeatures#FEATURES_V1
- Parameters:
uri
- to get saved state for- Returns:
- a pending call result that can be used to track the success/failure of this command
getLibraryState
Gets library state for the given Spotify uri. Supported uris currently include: Track - example: spotify:track:6rqhFgbbKwnb9MLmUQDhG6 Album - example: spotify:album:2VYSDvc0ZdcfkXDcYVjHs6 Introduced incom.spotify.protocol.client.RequiredFeatures#FEATURES_V1
- Parameters:
uri
- track or album to get library state for- Returns:
LibraryState
of a given uri.