Aline137
Aline137

Reputation: 93

Google Drive - push notifications content update - download

I have an application where user stores files (on the server) and on it's own google drive. I would like to reflect document changes from drive to server files. The only way of achieving this I could think of is using push notifications api for drive files and if type of notification is content update to download and replace file on server side. Is there a better way of achieving this, since notifications are being received often (almost for each letter typed) and downloading file every second doesn't seem like optimal solution.

Upvotes: 0

Views: 240

Answers (1)

Arthur Klezovich
Arthur Klezovich

Reputation: 2819

There are many ways in which you can handle this ...

  1. You can poll the Google Drive server for its state every minute. Figure out what changed and download it. This can help.
  2. You can also use an existing tool or another one to solve this problem.

Upvotes: 1

Related Questions