from .flags import Flag, Flags
Flags representing Spotify scopes.
Write access to user-provided images.
Write access to a user’s playback state.
Read access to a user’s player state.
Read access to a user’s currently playing content.
Read access to a user's top artists and tracks.
Read access to a user’s playback position in a content.
Read access to a user’s recently played tracks.
Write/delete access to a user's "Your Music" library.
Read access to a user's "Your Music" library.
Write/delete access to the list of artists and other users that the user follows.
Read access to the list of artists and other users that the user follows.
Read access to user's private playlists.
Write access to a user's public playlists.
Write access to a user's private playlists.
Include collaborative playlists when requesting a user's playlists.
Read access to user’s subscription details (type of user account).
Read access to user’s email address.
Remote control playback of Spotify. This scope is currently available to Spotify iOS and Android SDKs.
Control playback of a Spotify track. This scope is currently available to the Web Playback SDK. The user must have a Spotify Premium account.
ugc_image_upload = Flag(0)
user_modify_playback_state = Flag(1)
user_read_playback_state = Flag(2)
user_read_currently_playing = Flag(3)
user_top_read = Flag(4)
user_read_playback_position = Flag(5)
user_read_recently_played = Flag(6)
user_library_modify = Flag(7)
user_library_read = Flag(8)
user_follow_modify = Flag(9)
user_follow_read = Flag(10)
playlist_read_private = Flag(11)
playlist_modify_public = Flag(12)
playlist_modify_private = Flag(13)
playlist_read_collaborative = Flag(14)
user_read_private = Flag(15)
user_read_email = Flag(16)
app_remote_control = Flag(17)
streaming = Flag(18)
[docs] def string(self):
'''Get a string representation of the enabled scopes. Used when authenticating.'''
return ' '.join(name.replace('_', '-') for name, value in self if value)