Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
chakmangoo
3 years agoExplorer | Level 4
How to authenticate and stream a video file
Hello,
Question: How can I authenticate and stream a video file using api?
Context: I am working on a tool that should authenticate first to access a user file (I understand the token-in...
chakmangoo
3 years agoExplorer | Level 4
Thanks you very much, Greg!
I follow-up question with some testing.
curl -X POST https://api.dropboxapi.com/2/file_requests/list_v2 --header "Authorization: Bearer <bearer_token>" --data "{\"limit\":1000}" --header "Dropbox-API-Select-User <user_token>
Upon trying a simple curl command in terminal to make sure that I get a valid response (list of files) from dropbox server, I get this response:
curl: (52) Empty reply from server
I have the files in the folder and token are not expired as well.
Any idea what could be wrong?
Greg-DB
Dropbox Community Moderator
3 years agochakmangoo To clarify, the /2/file_requests/list_v2 is for listing "file requests", not actual files. If you want to list the actual files in a folder, you should use /2/files/list_folder and /2/files/list_folder/continue.
In any case, you shouldn't be receiving an "Empty reply from server" error; that may indicate an issue with your network connection. If you're still seeing that, please share the full code/steps to reproduce the issue, and the full output. It may be useful to use the "-v" flag on curl to get verbose output. Be sure to redact your access token though.
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!