10
votes

Are there any ways of getting file changes pushed to your website if a user signed up with google drive? For my site, I am doing some post processing on google documents, and it would be nice if i can get user to identify files they would like to track and every time they change the file, I will automatically get a notification and I can download the new version on my end.

I tried searching around on google drive api page, and i can only find "realtime api" which seem to be an api to sync changes between two of my own files, and not push changes to me from google drive.

Thanks a lot!

4

4 Answers

1
votes

Notifications for updates on file/directory changes are not available at the moment. Drive team is considering this as a future feature.

1
votes

No push notification, but you can poll the "Changes Feed."

https://developers.google.com/drive/manage-changes

-4
votes

As an alternative, you can have a look at gdrive2slack project source to see an example of implementation without the use of push API. We poll Drive to have better control of the rate and than push notifications to Slack.