Apps With Spotify Api Setup
Spotify Connect Set up Spotify Connect with our Web API to let users control Spotify on speakers, TVs, and other devices. Web API Commercial Hardware Integrations. Create Spotify now playing card on your github profile. Running on Vercel serverless function, store data in Firebase (store only accesstoken, refreshtoken, tokenexpiredtimestamp) Connect & Grant Permission. Click Connect with Spotify button below to grant permission; Example. Running for development locally.
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.
Spotify Api Docs
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.