Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I have a web app that does the following in order:
1. Login user via "login via dropbox" link
2. Get and save latest cursor
3. Call 2/files/list_folder/continue as needed using latest cursor, saving new cursor after api call
Now, no matter what changes are made to the app folder, *ALL* changes are returned when calling 2/files/list_folder/continue, not just latest changes.
Am i doing something wrong or out of sequence?
Hi Greg,
Sorry for the lack of information.
I'm using PHP with no library (just CURL)
Snipper
$data = '{"cursor": "' . $cursor . '"}'; $ch = curl_init('https://api.dropboxapi.com/2/files/list_folder/continue'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $token, 'Content-Type: application/json')); $json = curl_exec($ch); $result = json_decode($json, true); $new_cursor = $result['cursor'];
There are no errors. However, the next time i call list_folder/continue with the new cursor, i get a history fo all changes previously. Not just recent changes.
Thoughts?
Hi there!
If you need more help you can view your support options (expected response time for a 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!