Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
David R.84
9 years agoNew member | Level 2
List of all file changes
The Google Drive changes API lists all changes that have occured in a users Drive since a given point in time (indicated by a pageToken, Drive's equivalent of Dropbox's cursor). If a file has been modified multiple times, each modification will be listed (see the sample data below). When I receive a webhook to notify of a change, I use Dropbox's list_folder/continue method with the cursor I have saved for a user. It seems that unlike drive, the list_folder api will only list files that have changed, not each change that occurred to every file in the dropbox from the point in time of the cursor onwards. Is this correct?
If this is the case, how would one go about getting a chronological list of changes to the user's Dropbox, such as the sample from the Drive API below.
{
"kind": "drive#change",
"fileId": "0ByY6IA02pFulYUFGVzdVS1JPenM",
"removed": false,
"time": "2016-08-12T06:25:53.347Z",
"file": {
"kind": "drive#file",
"id": "0ByY6IA02pFulYUFGVzdVS1JPenM",
"name": "README.md",
"mimeType": "text/x-markdown"
}
},
{
"kind": "drive#change",
"fileId": "0ByY6IA02pFulbld4SlhVWi16V00",
"removed": false,
"time": "2016-08-12T06:18:28.114Z",
"file": {
"kind": "drive#file",
"id": "0ByY6IA02pFulbld4SlhVWi16V00",
"name": "README.md",
"mimeType": "text/x-markdown"
}
},
{
"kind": "drive#change",
"fileId": "0ByY6IA02pFulcUwwbXY2QU9acTQ",
"removed": false,
"time": "2016-08-12T06:15:21.384Z",
"file": {
"kind": "drive#file",
"id": "0ByY6IA02pFulcUwwbXY2QU9acTQ",
"name": "README.md",
"mimeType": "text/x-markdown"
}
}
1 Reply
- Greg-DB9 years ago
Dropbox Community Moderator
Hi David, that's correct, /list_folder/continue only guarantees that it will get your app's state up to date with the server, and not that it will necessarily give you every change.
If you want to list the changes for any particular file, you can use /files/list_revisions.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!