Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
HE A.
9 years agoNew member | Level 2
Get contents of a shared folder
I have a web app built in PHP, so I'm using v1 of the Dropbox API. When I request the metadata for a folder, it only returns a list of entries (files in the folder) if the folder is not shared. How w...
HE A.
9 years agoNew member | Level 2
Thanks, that worked!
I didn't expect the results to come back in chunks, because the total size was relatively small. Do you know if the chunking is based on size, or does it chunk based on some logic? If logic, do you know what the logic is (e.g., every folder is a separate chunk)? I'm just trying to reduce the number of calls that we make.
One last question -- after I make a call to move the files out of a folder, will the API then trigger a webhook saying that the state has changed? I'm guessing that the answer is yes. If so, my process seems to cause a lot of back-and-forth, something like this:
- User drops a file in the folder.
- My app receives a webhook saying that the folder has changed.
- Send a delta request to the Dropbox API (send multiple times to get the full details).
- Send a move request to the Dropbox API to move the file from the source folder to a destination folder in the same account.
- My app receives two webhooks saying that the source folder and the destination folders have changed.
- Send a delta request for each webhook, including multiple calls to get the full details.
- Determine that nothing has changed, so ignore these last two webhooks.
Is there some way to shorten this process, especially the last two webhooks? Is it possible to ignore the final webhooks using cursors or some other strategy?
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!