api - Detecting Google Drive changes -


i'm quite confused how operate changes api.

at moment, i'm making requests:

https://www.googleapis.com/drive/v3/changes?access_token=**my_token**&pagetoken=68485 **last few additions list

i get:

{  "kind": "drive#changelist",  "newstartpagetoken": "68489",  "changes": [   {    "kind": "drive#change",    "type": "file",    "time": "2017-04-08t00:40:36.141z",    "removed": false,    "fileid": "***id",    "file": {     "kind": "drive#file",     "id": "***id",     "name": "***name",     "mimetype": "application/vnd.google-apps.folder"    }   },   {    "kind": "drive#change",    "type": "file",    "time": "2017-04-08t00:41:00.171z",    "removed": false,    "fileid": "***id2",    "file": {     "kind": "drive#file",     "id": "***id2",     "name": "***name2",     "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"    }   }  ] 

i'm not aware of making changes first item in changes array.

after playing around, realised every time folder opened it's added changes, why? because meta-data being changes, i.e. last-accessed?

does same thing happen when files previewed/opened/downloaded?

i trashed second item in array, yet shows nothing this.

how tell being changed. i'm trying retrieve events such file updates, creations, deletions etc.

the official properties changes uses found in changes resource representations:

{   "kind": "drive#change",   "type": string,   "time": datetime,   "removed": boolean,   "fileid": string,   "file": files resource,   "teamdriveid": string,   "teamdrive": teamdrives resource } 

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -