use of com.dropbox.core.DbxRequestConfig in project jbpm-work-items by kiegroup.
the class DropboxAuth method authorize.
public DbxClientV2 authorize(String clientIdentifier, String accessToken) throws IllegalArgumentException {
try {
DbxRequestConfig config = new DbxRequestConfig(clientIdentifier);
DbxClientV2 client = new DbxClientV2(config, accessToken);
return client;
} catch (Exception e) {
throw new IllegalArgumentException(e.getMessage());
}
}
Aggregations