DBAppClient

Objective-C

@interface DBAppClient : DBAppBaseClient

Swift

class DBAppClient : DBAppBaseClient

Dropbox API Client for all endpoints with auth type “app”.

This is the SDK user’s primary interface with the Dropbox API. Routes can be accessed via each “namespace” object in the instance fields of its parent, DBAppBaseClient. To see a full list of the API endpoints available, please visit: https://www.dropbox.com/developers/documentation/http/documentation.

  • Convenience constructor.

    Uses standard network configuration parameters.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAppKey:(nonnull NSString *)appKey
                                 appSecret:(nonnull NSString *)appSecret;

    Swift

    init(appKey: String, appSecret: String)

    Parameters

    appKey

    The consumer app key associated with the app that is integrating with the Dropbox API. Here, app key is used for querying endpoints that have “app auth” authentication type.

    appSecret

    The consumer app secret associated with the app that is integrating with the Dropbox API. Here, app key is used for querying endpoints that have “app auth” authentication type.

    Return Value

    An initialized instance.

  • Full constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTransportConfig:
        (nullable DBTransportDefaultConfig *)transportConfig;

    Swift

    init(transport transportConfig: DBTransportDefaultConfig?)

    Parameters

    transportConfig

    A wrapper around the different parameters that can be set to change network calling behavior. DBTransportDefaultConfig offers a number of different constructors to customize networking settings.

    Return Value

    An initialized instance.