Skip to content

Commit

Permalink
Merge pull request #302 from samueltallent/update-spotify-scopes
Browse files Browse the repository at this point in the history
Update Spotify authorization scopes
  • Loading branch information
bentranter authored Dec 19, 2019
2 parents 725a530 + 39c06df commit c1ab589
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion providers/spotify/spotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const (
)

const (
// ScopePlaylistReadPrivate seeks permission to read
// a user's collaborative playlists.
ScopePlaylistReadCollaborative = "playlist-read-collaborative"
// ScopePlaylistReadPrivate seeks permission to read
// a user's private playlists.
ScopePlaylistReadPrivate = "playlist-read-private"
Expand All @@ -34,7 +37,7 @@ const (
// ScopeUserFollowRead seeks read access to the list of
// artists and other users that a user follows.
ScopeUserFollowRead = "user-follow-read"
// ScopeUserLibraryModify seeks write/delete acess to a
// ScopeUserLibraryModify seeks write/delete access to a
// user's "Your Music" library.
ScopeUserLibraryModify = "user-library-modify"
// ScopeUserLibraryRead seeks read access to a user's
Expand All @@ -46,6 +49,25 @@ const (
// ScopeUserReadEmail seeks read access to a user's
// email address.
ScopeUserReadEmail = "user-read-email"
// ScopeUGCImageUpload seeks write access to user-provided images.
ScopeUGCImageUpload = "ugc-image-upload"
// ScopeUserReadPlaybackState seeks read access to a user’s player state.
ScopeUserReadPlaybackState = "user-read-playback-state"
// ScopeUserModifyPlaybackState seeks write access to a user’s playback state
ScopeUserModifyPlaybackState = "user-modify-playback-state"
// ScopeUserReadCurrentlyPlaying seeks read access to a user’s currently playing track
ScopeUserReadCurrentlyPlaying = "user-read-currently-playing"
// ScopeStreaming seeks to control playback of a Spotify track.
// This scope is currently available to the Web Playback SDK.
// The user must have a Spotify Premium account.
ScopeStreaming = "streaming"
// ScopeAppRemoteControl seeks remote control playback of Spotify.
// This scope is currently available to Spotify iOS and Android SDKs.
ScopeAppRemoteControl = "app-remote-control"
// ScopeUserTopRead seeks read access to a user's top artists and tracks.
ScopeUserTopRead = "user-top-read"
// ScopeUserReadRecentlyPlayed seeks read access to a user’s recently played tracks.
ScopeUserReadRecentlyPlayed = "user-read-recently-played"
)

// New creates a new Spotify provider and sets up important connection details.
Expand Down

0 comments on commit c1ab589

Please sign in to comment.