如何导出特定版本的Google文档?
我想创建用户gdrive的精确切片副本。
这个想法是
但是对于Google文档文件,我在head revision
中找不到/files/list/
字段:
{
"id": "1Vsg1U58vXPCGqL2KFAT-cY9ckAIwWxQQ0-49HOPtHzI",
"name": "Spreadsheet-test-file-1",
"mimeType": "application/vnd.google-apps.spreadsheet",
"version": "844"
},
当我列出这个文件的所有修订版时,我得到了这个:
{
"kind": "drive#revisionList",
"revisions": [
{
"kind": "drive#revision",
"id": "1",
"mimeType": "application/vnd.google-apps.spreadsheet",
"modifiedTime": "2017-07-04T07:21:24.849Z"
},
{
"kind": "drive#revision",
"id": "2",
"mimeType": "application/vnd.google-apps.spreadsheet",
"modifiedTime": "2017-07-04T07:21:24.852Z"
}
]
}
但是当我尝试下载此版本时,我收到错误Only files with binary content can be downloaded. Use Export with Google Docs files.
我知道API文档说Google文档无法通过修订下载。但如果是这样,我不明白如何获得驱动器的确切切片?
顺便说一下,我正在使用Go库来驱动api。