You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Raheel S.
8 years agoExplorer | Level 3
API v2 - Longpoll Objective C
Hello,
I want a good example of a using ListFolderLongpoll, I am getting cursor errors and find little documentation as to how to receive changes notification.
I am using ObjC SDK V2.
- Greg-DBDropbox Staff
Hi Raheel, you can find the documentation for listFolderLongpoll itself here.
Using it would look like this:
// cursor should be the Files.ListFolderResult.cursor as retrieved by the last call to listFolderContinue DropboxClientsManager.authorizedClient?.files.listFolderLongpoll(cursor: cursor).response(completionHandler: { (result, error) in if ((result) != nil) { if (result?.changes)! { // There are changes, so call listFolderContinue to retrieve them } else { // listFolderLongpoll didn't report changes, so call listFolderLongpoll again } } else if ((error) != nil) { // Perform whatever error handling you want here } })
- Raheel S.Explorer | Level 3
Thanks Greg, I just figured that out.
The new SDK is getting some used to.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 4 hours agoIf 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!