We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Jonathan H.2's avatar
Jonathan H.2
New member | Level 2
6 years ago
Solved

Re: How to get last modified date for folders in Dropbox V2 API ?

Hi Greg_K.

This is making it very complex and, I think, requiring lots of unnecessary API calls.

When a new folder is uploaded, I need to make a playlist from the mp3 files and share it.

So I detect when the folder is likely to be "settled" by seeing if the most recent file is older than 5 minutes. At which point I run 

sharingCreateSharedLinkWithSettings for each file to generate a playlist to save an API call each time.
 
But what if an item gets added, removed or changed? There is no way of knowing which item, so I have to run the create link on all the items, each time, with
result.url...
or "catch" the error, and then look for result.error.error.shared_link_already_exists.metadata.url
 

To have content_hash on folders would be amazing and save all those calls!

(To have public-style folders back would be even more amazing!)

Unless I am missing a trick here?

1 Reply

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 9 hours ago
410 Following

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 or Facebook.

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!