Open vtomberg opened 8 years ago
https://developers.google.com/drive/v3/reference/revisions/list
It seems we can get just the full list of revisions with each request (not just revisions since last modification or n-last revisions). We can request just specific fields we need, which should be what?
The query would then look something like this:
GET https://www.googleapis.com/drive/v3/files/{{FILE_ID}}/revisions?fields=revisions(lastModifyingUser(displayName,emailAddress),modifiedTime)&key={{YOUR_API_KEY}}
Getting all revisions might not be such a big deal, provided that query is only sent once in a while. A list could be easily iterated until the last known revision is found and later ones are deal with (maybe imported into the local storage so that serving that data would be fast and reliable; this would also allow to keep the API usage at bay on the Google side - there are certain limitations and one would have to pay when those are exceeded).
To check Google API if it possible to request a version history for linked target documents?