public class DbxAppClientV2 extends DbxAppClientV2Base
This class has no mutable state, so it's thread safe as long as you pass
in a thread safe HttpRequestor
implementation.
_client
Constructor and Description |
---|
DbxAppClientV2(DbxRequestConfig requestConfig,
java.lang.String key,
java.lang.String secret)
Creates a client that uses the given app key and secret when performing requests against the
default Dropbox hosts.
|
DbxAppClientV2(DbxRequestConfig requestConfig,
java.lang.String key,
java.lang.String secret,
DbxHost host)
Same as
DbxAppClientV2(DbxRequestConfig, String, String) except you can also set the
hostnames of the Dropbox API servers. |
DbxAppClientV2(DbxRequestConfig requestConfig,
java.lang.String key,
java.lang.String secret,
DbxHost host,
java.lang.String userId)
Same as
DbxAppClientV2(DbxRequestConfig, String, String) except you can also set the
hostnames of the Dropbox API servers. |
auth, check, files
public DbxAppClientV2(DbxRequestConfig requestConfig, java.lang.String key, java.lang.String secret)
requestConfig
- Default attributes to use for each requestkey
- Dropbox app key (e.g. consumer key in OAuth)secret
- Dropbox app secret (e.g. consumer secret in OAuth)public DbxAppClientV2(DbxRequestConfig requestConfig, java.lang.String key, java.lang.String secret, DbxHost host)
DbxAppClientV2(DbxRequestConfig, String, String)
except you can also set the
hostnames of the Dropbox API servers. This is used in testing. You don't normally need to
call this.requestConfig
- Default attributes to use for each requestkey
- Dropbox app key (e.g. consumer key in OAuth)secret
- Dropbox app secret (e.g. consumer secret in OAuth)host
- Dropbox hosts to send requests to (used for mocking and
testing)public DbxAppClientV2(DbxRequestConfig requestConfig, java.lang.String key, java.lang.String secret, DbxHost host, java.lang.String userId)
DbxAppClientV2(DbxRequestConfig, String, String)
except you can also set the
hostnames of the Dropbox API servers. This is used in testing. You don't normally need to
call this.requestConfig
- Default attributes to use for each requestkey
- Dropbox app key (e.g. consumer key in OAuth)secret
- Dropbox app secret (e.g. consumer secret in OAuth)host
- Dropbox hosts to send requests to (used for mocking and
testing)userId
- The user ID of the current Dropbox account. Used for
multi-Dropbox account use-case.