cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Discuss Dropbox Developer & API

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

Dropbox API read files from someones shared link

Dropbox API read files from someones shared link

itsisaf
Explorer | Level 3
Go to solution

Hi, I am a PHP web developer trying to integrate dropbox API. What I need is to access files (CSV, Images).
Scenario :
I have a link to dropbox shared by some company [link removed by moderator]
I have to implement Dropbox API in a way that I have to read CSV files from the above link, then after reading the content of file, I have to access images from relevant folders.
I am not sure if is it possible or not to read from the shared link which is not mine.

I am looking for someone who solves my problem and I can proceed.
thanks!

1 Accepted Solution

Accepted Solutions

Здравко
Legendary | Level 20
Go to solution

Hi @itsisaf,

If you have a shared file link, then you don't need any API to get its content. Just get it as you would do for any other link. Only additional thing you can care, if need, let link gets redirect before reaching final stage. In addition usually proper parameter for raw access is needed to be set (if not preset in the link - typically it's not). The same is valid for any type of file; proper content interpretation is entirely your responsibility.

If you have a shared folder link, you may need to use /2/files/list_folder[/continue] API points to list the content and reach to there. 😉 That's it.

Hope this helps.

View solution in original post

2 Replies 2

Здравко
Legendary | Level 20
Go to solution

Hi @itsisaf,

If you have a shared file link, then you don't need any API to get its content. Just get it as you would do for any other link. Only additional thing you can care, if need, let link gets redirect before reaching final stage. In addition usually proper parameter for raw access is needed to be set (if not preset in the link - typically it's not). The same is valid for any type of file; proper content interpretation is entirely your responsibility.

If you have a shared folder link, you may need to use /2/files/list_folder[/continue] API points to list the content and reach to there. 😉 That's it.

Hope this helps.

Greg-DB
Dropbox Staff
Go to solution

@itsisaf Ð—дравко is correct; with a shared link you can download the content directly. Refer to this help article for more information on configuring these links.

 

And as they said, if the shared link is for a folder, you can use /2/files/list_folder[/continue] to list the contents of the folder. And to download a file from a shared link via the API, you can use /2/sharing/get_shared_link_file.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?