Class DbxClientV1

java.lang.Object
com.dropbox.core.v1.DbxClientV1

public final class DbxClientV1 extends Object
Use this class to make remote calls to the Dropbox API. You'll need an access token first, normally acquired via DbxWebAuth.

This class has no mutable state, so it's thread safe as long as you pass in a thread safe HttpRequestor implementation.

  • Field Details

  • Constructor Details

    • DbxClientV1

      public DbxClientV1(DbxRequestConfig requestConfig, String accessToken)
      Parameters:
      accessToken - The OAuth 2 access token (that you got from Dropbox) that gives your app the ability to make Dropbox API calls against some particular user's account. The standard way to get one of these is to use DbxWebAuth to send your user through Dropbox's OAuth 2 authorization flow.
    • DbxClientV1

      public DbxClientV1(DbxRequestConfig requestConfig, String accessToken, DbxHost host)
      The same as DbxClientV1(DbxRequestConfig, 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.
  • Method Details