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

    scopeType

    Type of the requested scopes.

    scopes

    A 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.

    includeGrantedScopes

    If 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.