Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Raheel S.
8 years agoExplorer | Level 3
Dropbox API2 Swift Examples
Hello, Been a while since I've lookd/worked with the dropbox API. I was discouraged the last time I dedicate more than a year on perfecting an app for Datastore API. (anyway)..
I've looked at the v2 API. I wanted to look at a worthy example that shows some capabilities of api2.
Mostly: I'm concerned about efficiency of
1. Downloading a chuck of newly created files.
2. Listening to a folderpath for file changes and calling the function (firstpoint) again.
I want to continously monitor a folderpath for changes and discover new changes (basically a sync API)
But i want to look at examples, all I see is a PhotoWatch. (😤)
Would appreciate someone pointing me to a github or atleast some pointers. At this time, there should be some many examples floating around. (I shouldn't have to write a simple sync logic)
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
In addition to the PhotoWatch sample you already mentioned, we also have some samples on the GitHub page here. Apologies there aren't more!
For reference though, for downloading files, you would use the download methods, and for listening for changes, you would use listFolderLongpoll. If you run in to any issues with those, let me know and we'll be happy to help.
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!