|
| 1 | +#import <Foundation/Foundation.h> |
| 2 | + |
| 3 | +/// `SPTScope` represents the OAuth scopes that declare how your app wants to access a user's account. |
| 4 | +/// See https://developer.spotify.com/web-api/using-scopes/ for more information. |
| 5 | +typedef NS_OPTIONS(NSUInteger, SPTScope) { |
| 6 | + // Read access to user's private playlists. |
| 7 | + SPTScopePlaylistReadPrivate = 1 << 0, |
| 8 | + |
| 9 | + // Include collaborative playlists when requesting a user's playlists. |
| 10 | + SPTScopePlaylistReadCollaborative = 1 << 1, |
| 11 | + |
| 12 | + // Write access to a user's public playlists. |
| 13 | + SPTScopePlaylistModifyPublic = 1 << 2, |
| 14 | + |
| 15 | + // Write access to a user's private playlists. |
| 16 | + SPTScopePlaylistModifyPrivate = 1 << 3, |
| 17 | + |
| 18 | + // Read access to the list of artists and other users that the user follows. |
| 19 | + SPTScopeUserFollowRead = 1 << 4, |
| 20 | + |
| 21 | + // Write/delete access to the list of artists and other users that the user follows. |
| 22 | + SPTScopeUserFollowModify = 1 << 5, |
| 23 | + |
| 24 | + // Read access to a user's "Your Music" library. |
| 25 | + SPTScopeUserLibraryRead = 1 << 6, |
| 26 | + |
| 27 | + // Write/delete access to a user's "Your Music" library. |
| 28 | + SPTScopeUserLibraryModify = 1 << 7, |
| 29 | + |
| 30 | + // Read access to the user's birthdate. |
| 31 | + SPTScopeUserReadBirthDate = 1 << 8, |
| 32 | + |
| 33 | + // Read access to user’s email address. |
| 34 | + SPTScopeUserReadEmail = 1 << 9, |
| 35 | + |
| 36 | + // Read access to user’s subscription details (type of user account). |
| 37 | + SPTScopeUserReadPrivate = 1 << 10, |
| 38 | + |
| 39 | + // Read access to a user's top artists and tracks. |
| 40 | + SPTScopeUserTopRead = 1 << 11, |
| 41 | + |
| 42 | + // Upload user generated content images. |
| 43 | + SPTScopeUgcImageUpload = 1 << 12, |
| 44 | + |
| 45 | + // Control playback of a Spotify track. |
| 46 | + SPTScopeStreaming = 1 << 13, |
| 47 | + |
| 48 | + // Read access to a user’s player state. |
| 49 | + SPTScopeUserReadPlaybackState = 1 << 14, |
| 50 | + |
| 51 | + // Write access to a user’s playback state. |
| 52 | + SPTScopeUserModifyPlaybackState = 1 << 15, |
| 53 | + |
| 54 | + // Read access to a user’s currently playing track. |
| 55 | + SPTScopeUserReadCurrentlyPlaying = 1 << 16, |
| 56 | + |
| 57 | + // Read access to a user’s recently played tracks. |
| 58 | + SPTScopeUserReadRecentlyPlayed = 1 << 17, |
| 59 | + |
| 60 | + // Indicate that the application intends to use OIDC to verify the user's identity |
| 61 | + SPTScopeOpenid = 1 << 18 |
| 62 | +} NS_SWIFT_NAME(Scope); |
0 commit comments