/** * Same as {@link #DbxClientV2(DbxRequestConfig, String, DbxHost)} except you can * also set the userId for multiple Dropbox accounts. * * @param requestConfig Default attributes to use for each request * @param accessToken OAuth 2 access token (that you got from Dropbox) that * gives your app the ability to make Dropbox API calls. Typically * acquired through {@link com.dropbox.core.DbxWebAuth} * @param host Dropbox hosts to send requests to (used for mocking and * testing) * @param userId The user ID of the current Dropbox account. Used for multi-Dropbox * account use-case. */ public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host, String userId) { super(new DbxUserRawClientV2(requestConfig, accessToken, host, userId, null)); }
@Override protected DbxRawClientV2 withPathRoot(PathRoot pathRoot) { return new DbxUserRawClientV2( this.getRequestConfig(), this.accessToken, this.getHost(), this.getUserId(), pathRoot ); } }