Help
Apps and Installations
Create, Upload, and Share
Delete, Edit, and Organize
Mods Only
Integrations
Plans and Subscriptions
Security and Permissions
Settings and Preferences
Storage Space
View, Download, and Export
Products
DocSend
Dropbox Dash
Dropbox Replay
Dropbox Sign
Discover
Discover
Developer & API
Groups
Business Team Members
Educators
Super User
Ideas
Discussions
Categories
Help
Child Item
Home
English Community
Discover
Developer and API
Dropbox API Support and Feedback
php read CSV file in dropbox
ellisyu
There is a CSV file in Dropbox.
How to read it with php?
The php code is as follows,
$url = "
https://content.dropboxapi.com/2/files/download?authorization=Bearer%20<TOKEN>&arg=%7B%22path%22%3A%20%22%2Ftest.csv%22%7D
";
$fileData=fopen($url,'r');
Is the $url wrong?
Find more posts tagged with
API
Abuse
Comments
Greg-DB
That URL structure looks right for accessing file data via /2/files/download using a GET request.
What exactly isn't working for you? What error or unexpected output are you getting?
ellisyu
I use browser to try this url, but got ERR_INVALID_RESPONSE.
Is there anything wrong with the url?
Greg-DB
My sample, using your structure but plugging in my own access token, is working for me in Chrome, Safari, and Firefox.
What browser are you using?
If you check using the developer tools, what's the actual HTTP response that you get?
Featured Links
All Categories
Recent Posts
Activity
About the Community
Tags
Desktop
API
Sync
Share
Error Messages
Child Item