SingleTokenSession
public class SingleTokenSession : SessionProtocol
Developer session that only requires a developer token. Session will only work as long as the token is valid.
-
Declaration
Swift
public func getAccessToken(completion: @escaping AccessTokenClosure) -
Declaration
Swift
public func revokeTokens(completion: @escaping Callback<Void>) -
Downscope the token.
Declaration
Swift
public func downscopeToken( scope: Set<TokenScope>, resource: String? = nil, sharedLink: String? = nil, completion: @escaping TokenInfoClosure )Parameters
scopeScope or scopes that you want to apply to the resulting token.
resourceFull url path to the file that the token should be generated for, eg: https://api.box.com/2.0/files/{file_id}
sharedLinkShared link to get a token for.
completionReturns the success or an error.
SingleTokenSession Class Reference