#Generic APIs to access cloud storage services:
Currently, the following actions are supported:
- Upload a file
- Download a file
- Get files and directories metadata
The following services are supported:
- Dropbox
- Google Drive
##How to use The APIs are provided in CloudAPI.java. You need to import all jar files in /libs directory
##How to test
- Register Dropbox account
- Go to Dropbox App Console to create a new project: https://www.dropbox.com/developers/apps
- After creating a new project, you can get APP_KEY and APP_SECRET value
- Compile and run testDropbox.java file
For testing purpose, you can Generate Access Token and use this token to access your Dropbox account without following the standard flow of OAuth2
- Register Google account
- Go to Google Developer Console: https://console.developers.google.com/project
- Creat a new project if needed
- On the left side, select APISs (under APIs & auth), and make sure that the status of Google Drive API is on
- On the left side, select Credentials, then under OAuth click to "Create New Client ID". Follow the instruction on the screen.
- Replacing the CLIENT_ID and CLIENT_SECRET by the keys Google provided.
- Compile and run testGoogleDrive.java
You need to create setting file with following format: KEY= //it is your CLIENT ID in case Google Drive SECRET= //it is your CLIENT SECRET in case Google Drive TOKEN= //it is access token you generated with Dropbox and fill your information