DBScopeRequest
Objective-C
@interface DBScopeRequest : NSObject
Swift
class DBScopeRequest : NSObject
Contains the information of requested scopes.
-
Designated Initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithScopeType:(DBScopeType)scopeType scopes:(nonnull NSArray<NSString *> *)scopes includeGrantedScopes:(BOOL)includeGrantedScopes;Swift
init(scopeType: DBScopeType, scopes: [String], includeGrantedScopes: Bool)Parameters
scopeTypeType of the requested scopes.
scopesA list of scope returned by Dropbox server. Each scope correspond to a group of API endpoints. To call one API endpoint you have to obtains the scope first otherwise you will get HTTP 401.
includeGrantedScopesIf false, Dropbox will give you the scopes in scopes array. Otherwise Dropbox server will return a token with all scopes user previously granted your app together with the new scopes.
View on GitHub
DBScopeRequest Class Reference