Your workflow is unique šØāš» - tell us how you use Dropbox here.
Forum Discussion
ÄoĆ n
8 years agoNew member | Level 2
Can i add proxy to the dopbox api?
I had to use java dropbox api for my app, but my school require proxy to use the internet. so how i can add proxy to my app? if i can, can you please give me the example. thank for the support!
Greg-DB
Dropbox Community Moderator
8 years agoYes, if you're using the official API v2 Java SDK, you can set a proxy by constructing a StandardHttpRequestor with a StandardHttpRequestor.Config. You can build a StandardHttpRequestor.Config with a proxy set by using StandardHttpRequestor.Config.builder to get a StandardHttpRequestor.Config.Builder and using the withProxy method.
That would look something like:
StandardHttpRequestor.Config.Builder requestorConfigBuilder = StandardHttpRequestor.Config.builder();
requestorConfigBuilder.withProxy(yourProxy);
StandardHttpRequestor.Config requestorConfig = requestorConfigBuilder.build();
StandardHttpRequestor requestor = new StandardHttpRequestor(requestorConfig);
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("testApp/")
.withHttpRequestor(requestor)
.build();
DbxClientV2 client = new DbxClientV2(requestConfig, ACCESS_TOKEN);About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!