FurtiveFelon
FurtiveFelon

Reputation: 15156

How to get push notification when a file in google drive changes using google api

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!

Upvotes: 10

Views: 28861

Answers (4)

Claudio
Claudio

Reputation: 1

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.

Upvotes: -4

Ali Afshar
Ali Afshar

Reputation: 41633

This feature has been launched today. https://developers.google.com/drive/push?hl=en

Upvotes: 8

Mike
Mike

Reputation: 5572

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

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

Upvotes: 1

Burcu Dogan
Burcu Dogan

Reputation: 9213

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

Upvotes: 1

Related Questions