cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We’re having some trouble with our services currently. We’re working to fix the problem as quickly as we can. We’ll share another update shortly. For the latest information visit here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

command-line download app

command-line download app

jrcampins
Explorer | Level 4
Go to solution

I am trying to build an App to let other people (even non-Dropbox users) easily download files from a specific folder in my Dropbox. The App only needs to have read-only access to such folder.

Based on the examples, I built a very simple command-line download app. The app works just fine but I don't want to distribute it as it is, as my access token is hard-coded in it, and although its permission type is "App folder" and therefore its access should be limited to that folder it would be read-write access.

Could anybody please help me find a way build this App without sharing my access token and/or my secret key?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account, as you've done, but we don't recommend doing so, for various technical and security reasons, like you mentioned.

Anyway, there isn't a way to configure a read-only permission, but I'll pass this along as a feature request.

Alternatively, you could consider using shared links to link to content in your Dropbox:

https://www.dropbox.com/help/files-folders/view-only-access

You can modify these links for direct access, e.g., to programmatically download from them:

https://www.dropbox.com/help/desktop-web/force-download

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account, as you've done, but we don't recommend doing so, for various technical and security reasons, like you mentioned.

Anyway, there isn't a way to configure a read-only permission, but I'll pass this along as a feature request.

Alternatively, you could consider using shared links to link to content in your Dropbox:

https://www.dropbox.com/help/files-folders/view-only-access

You can modify these links for direct access, e.g., to programmatically download from them:

https://www.dropbox.com/help/desktop-web/force-download

jrcampins
Explorer | Level 4
Go to solution

Thanks a lot! Modifying the links for direct access solves my problem. Files can be downloaded very easily using FileUtils.copyURLToFile (no need for Dropbox's API).

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    jrcampins Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?