在Google Drive API中下载文件的特定修订版 [英] Download a specific revision of a file in google drive api
本文介绍了在Google Drive API中下载文件的特定修订版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以通过其iD下载特定文件,
I can download specific file by its iD,
- 获取downloadUrl
- 使用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.
推荐答案
如果您使用部分,您将获得给定文档的修订列表.每个修订都带有"ExportLinks"列表(包含具有不同导出格式的链接)或downloadUrl(用于非Google文件).
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.
这篇关于在Google Drive API中下载文件的特定修订版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文