cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right 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: 
1
Ask
2
Comments

Dropbox API access files on shared link without authentication

Dropbox API access files on shared link without authentication

sir_shepherd
Explorer | Level 3

Hey everyone,

i'm currently writing a new android app for a football club of my village and i want to load some images from a dropbox folder using a shared link.

Is it possible to load files from a shared dropbox link folder without authenticating the user using the dropbox api for android.

I'm searching for a solution (and hopefully a good tutorial) since a few days, but it seems like nobody tried the same thing before or it's just not possible. 

I'm new in the world of 'dropbox developer tools' and i found a lot of solutions in which i have to authenticate the user with an access-token or app-key. But i don't know/understand which kind of access will be granted to the app by using one of these things. Maybe, someone can explain the usage of these to me, because if i can use them without any security issues, it could be acceptable solution.

The app should only be possible to read the content of the folder and should not be allowed to write into it.

Best regards,

DS

1 Accepted Solution

Accepted Solutions

Re: Dropbox API access files on shared link without authentication

Greg-DB
Dropboxer

If you want programmatic unauthenticated read-only access, you may want to use a Dropbox shared link to the folder (which should contain a component "/sh/") with the URL parameters documented here:

https://help.dropbox.com/files-folders/share/force-download

If you modify the URL as described there, e.g., using a "dl=1" parameter, you can then programmatically download directly from the shared link without using the API, app key, access tokens, etc.

In the case of a shared link for a folder, that will give you a download of a zip file containing the folder. You could then unzip that and use the contents as desired.

View solution in original post

1 Reply 1

Re: Dropbox API access files on shared link without authentication

Greg-DB
Dropboxer

If you want programmatic unauthenticated read-only access, you may want to use a Dropbox shared link to the folder (which should contain a component "/sh/") with the URL parameters documented here:

https://help.dropbox.com/files-folders/share/force-download

If you modify the URL as described there, e.g., using a "dl=1" parameter, you can then programmatically download directly from the shared link without using the API, app key, access tokens, etc.

In the case of a shared link for a folder, that will give you a download of a zip file containing the folder. You could then unzip that and use the contents as desired.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?