You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
itsisaf
3 years agoExplorer | Level 3
Dropbox API read files from someones shared link
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!
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.
- ЗдравкоLegendary | Level 20
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-DBDropbox Staff
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.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 2 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!