AuthRoutes

open class AuthRoutes

Copyright © 2016 Dropbox, Inc. All rights reserved.

Auto-generated by Stone, do not modify.

Routes for the auth namespace

  • Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token.

    Declaration

    Swift

    @discardableResult
    open func tokenFromOauth1(oauth1Token: String, oauth1TokenSecret: String) -> RpcRequest<Auth.TokenFromOAuth1ResultSerializer, Auth.TokenFromOAuth1ErrorSerializer>

    Parameters

    oauth1Token

    The supplied OAuth 1.0 access token.

    oauth1TokenSecret

    The token secret associated with the supplied access token.

    Return Value

    Through the response callback, the caller will receive a Auth.TokenFromOAuth1Result object on success or a Auth.TokenFromOAuth1Error object on failure.

  • Disables the access token used to authenticate the call.

    Declaration

    Swift

    @discardableResult
    open func tokenRevoke() -> RpcRequest<VoidSerializer, VoidSerializer>

    Return Value

    Through the response callback, the caller will receive a Void object on success or a Void object on failure.