We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
lrduques
7 years agoHelpful | Level 6
How do I get the content from shared HTML file?
Hi! I am working with shared links files on my Dropbox App in PHP and I need a hand. Currently, I send a request file to the API and get back a HTML file: array(1) {
[0]=>
array(10) {
[...
- 7 years ago
It looks like you're printing out the file metadata from an API call that returns information about the file. To get the file's actual content, you should instead use /2/files/download:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
Greg-DB
Dropbox Community Moderator
7 years agoIt looks like you're printing out the file metadata from an API call that returns information about the file. To get the file's actual content, you should instead use /2/files/download:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!