DropboxTeamClient

open class DropboxTeamClient : DropboxTeamBase

The client for the Business API. Call routes using the namespaces inside this object (inherited from parent).

  • Initialize a client with a static accessToken string. Use this method if your access token is long-lived.

    Declaration

    Swift

    public convenience init(accessToken: String)

    Parameters

    accessToken

    Static access token string.

  • Initialize a client with an AccessTokenProvider. Use this method if your access token is short-lived. See ShortLivedAccessTokenProvider for a default implementation.

    Declaration

    Swift

    public convenience init(accessTokenProvider: AccessTokenProvider)

    Parameters

    accessTokenProvider

    Access token provider that wraps a short-lived token and its refresh logic.

  • Designated Initializer.

    Declaration

    Swift

    public init(transportClient: DropboxTransportClient)

    Parameters

    transportClient

    The underlying DropboxTransportClient to make API calls.

  • Creates a new DropboxClient instance for the team member id.

    Declaration

    Swift

    public func asMember(_ memberId: String) -> DropboxClient

    Parameters

    memberId

    Team member id.

    Return Value

    A new DropboxClient instance that can be used to call APIs on the team member’s behalf.