phenomenon.aurora
phenomenon.aurora

Reputation: 521

Download a specific revision of a file in google drive api

I can download specific file by its iD,

  1. get the downloadUrl
  2. Download the content using get.

But I am not able to find anything which indicates, that I can download the specific revision of a file. Any pointer will be helpful.

Upvotes: 2

Views: 1699

Answers (1)

Thibault Pouget
Thibault Pouget

Reputation: 81

If you user the Revisions part of the Drive API, you get get a list of revisions for a given document. Each revision comes with either an "ExportLinks" list, containing links with different export formats, or a downloadUrl (for non-Google files).

Using these, you can download a specific revision.

Upvotes: 3

Related Questions