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);
}
}
Aggregations