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
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