Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ivan006
6 years agoHelpful | Level 6
I need a php/js based webapp that syncs files between it's server and it's dropbox app folder
It only needs to be a one way sync (from dropbox to the server) Any recommended libraries/tutorials/endpoints to do this? [ same q dif platform https://stackoverflow.com/questions/61755432/dropbox-s...
ivan006
6 years agoHelpful | Level 6
Ok so how do i find out what changed? is it a file property?
please dont tell me ur refering to the date modified property? unless that could work as i could say "if it has changed in the last five minutes after the webhook fired then download it"...
Side note: Is there a statergy for this requirement or am i the only person in the world who has ever considered such things? lol
Greg-DB
Dropbox Community Moderator
6 years agoYou can store the last received cursor from /2/files/list_folder or /2/files/list_folder/continue and then call back later to /2/files/list_folder/continue with that cursor. The response will contain entries for the changes since you last called. Check out the /2/files/list_folder documentation for more information on how to process these entries.
Exactly how you write your code will depend on what exactly you need your app to do of course, but I imagine other people have implemented things like this. Perhaps others on the forum can offer some insight on their experience when doing so if they see this thread.
- ivan0066 years agoHelpful | Level 6
Endpoints to use:
- Initial sync: download to zip (then extract)
- Thereafter syncs:
- Check for changes trigger: Use a webhook
- Check for changes: Use a cursor
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!