Search in sources :

Example 1 with OkHttp3Requestor

use of com.dropbox.core.http.OkHttp3Requestor in project dropbox-sdk-java by dropbox.

the class DropboxClientFactory method init.

public static void init(String accessToken) {
    if (sDbxClient == null) {
        DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("examples-v2-demo").withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient())).build();
        sDbxClient = new DbxClientV2(requestConfig, accessToken);
    }
}
Also used : DbxClientV2(com.dropbox.core.v2.DbxClientV2) DbxRequestConfig(com.dropbox.core.DbxRequestConfig) OkHttp3Requestor(com.dropbox.core.http.OkHttp3Requestor)

Aggregations

DbxRequestConfig (com.dropbox.core.DbxRequestConfig)1 OkHttp3Requestor (com.dropbox.core.http.OkHttp3Requestor)1 DbxClientV2 (com.dropbox.core.v2.DbxClientV2)1