Question

I have Java desktop application which generates report. This report has to be uploaded to Dropbox. Code works well but DropBox ask the user to authorize my app, so the user has to click a link and to copy a String and to pass it on my application. This is unacceptable behavior for my user because she wants just to open the file. How can I upload something without making user to do anything?

P.S. I follow https://www.dropbox.com/developers/core/start/java

Was it helpful?

Solution 2

To receive the token with which to authenticate against specific user can use web app:

http://apps.camilolopes.com.br/dpboxapiweb/#/

or can be run Maven project

https://github.com/ITSStartup/dropboxapi-example

When the token is received it has to be saved on file and to be used for future uploads and downloads. Examples for downloading and uploading can be found in example section of dropbox-sdk

https://github.com/dropbox/dropbox-sdk-java/tree/master/examples

OTHER TIPS

I'm not sure what you're asking. There's certainly no way to upload a file to a user's Dropbox without that user's permission.

If you want to have the user only authorize the app once, you can certainly remember the user's access token and reuse that in the future. (There's no need for the user to auth every time.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top