We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
vigneshsn
6 years agoExplorer | Level 4
Unable to customize port and protocol in dropbox SDK
I'm using Dropbox java sdk for uploading files from my service. it works fine!!!
In local I would like to mock the dropbox , instead want to connect to my wiremock server running on port 9001 with http protocal.
I'm using 'DbxClientV2' to make connection with dropbox and I don't see any configuration to change port.
How can I acheive this?
- Greg-DBDropbox Staff
The Dropbox Java SDK doesn't officially support changing the port or protocol (all calls have to be done over TLS so the port is always 443), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- vigneshsnExplorer | Level 4
Thanks for the reply.
It would be handy to have port configured, between could you propose an alternative solution for this situation. I don't want to call actual dropbox server for my localsetup.
- Greg-DBDropbox Staff
The closest thing the Java SDK offers is the ability to set custom hosts via a DbxHost, using this DbxClientV2 constructor. I don't have any sample code for that. I don't believe it would let you change the protocol or port though.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 5 days agoIf 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 or Facebook.
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!