A basic Java application implementing OAuth 2.0 for authentication and calling Dropbox APIs to get information.
- Java 8 or higher
- Maven 3.x
- A Dropbox developer account
Create a Dropbox App from the Dropbox App Console and note the following credentials:
Populate the following fields under existing file dropbox.properties
:
dropbox.clientId=
dropbox.clientSecret=
dropbox.redirectUrl=
dropbox.scope=
After populating the properties, run mvn clean install
. This command should generate a jar named dropbox-api.jar
under the target folder.
Run the jar using the following command
java -jar dropbox-api.jar
Follow the instructions on the cli to get the team information.