Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
New_Horizons
7 years agoExplorer | Level 4
Get the list of files
Hello! Sorry for my English. I have a shared link. I need to get a list of files. I execute the query: curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authoriza...
- 7 years ago
The /2/files/list_folder endpoint expects an object for 'shared_link', with a key 'url' and optionally a key 'password'. So, it should look like this:
curl -X POST https://api.dropboxapi.com/2/files/list_folder \ --header "Authorization: Bearer <<my_app_token>>" \ --header "Content-Type: application/json" \ --data "{\"path\": \"\",\"shared_link\":{\"url\":\"https://www.dropbox.com/sh/doxhqxkjtiahkns/AADHM1f9uaFGLQHgtERCiLcna\"},\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true}"I recommend using the API v2 Explorer to help build these.
Greg-DB
Dropbox Community Moderator
7 years agoThe /2/files/list_folder endpoint expects an object for 'shared_link', with a key 'url' and optionally a key 'password'. So, it should look like this:
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer <<my_app_token>>" \
--header "Content-Type: application/json" \
--data "{\"path\": \"\",\"shared_link\":{\"url\":\"https://www.dropbox.com/sh/doxhqxkjtiahkns/AADHM1f9uaFGLQHgtERCiLcna\"},\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true}"
I recommend using the API v2 Explorer to help build these.
New_Horizons
7 years agoExplorer | Level 4
Everything worked out. Many thanks.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!