【发布时间】:2017-04-16 02:31:54
【问题描述】:
你不知道。来自docs,
获得文件修订列表后,您可以通过使用参数 alt=media 调用 revisions.get 方法来下载任何修订的内容。无法下载 Google 文档、表格和幻灯片的修订版。
但我想根据日期下载(pdf)同一个 Gdoc 文件的不同版本。从云端硬盘网络应用程序中,您可以查看版本并打印它们或将版本恢复到磁头。有什么方法可以使用 API 来实现吗?你能恢复一些版本吗?然后你就可以导出文件了。
我搜索了互联网,但找不到解决方法。
我正在使用 java 客户端 api,当我尝试发出媒体获取请求时,它会给我这个。
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"location" : "alt",
"locationType" : "parameter",
"message" : "Only files with binary content can be downloaded. Use Export with Google Docs files.",
"reason" : "fileNotDownloadable"
} ],
"message" : "Only files with binary content can be downloaded. Use Export with Google Docs files."
}
但我可以弄清楚你是否也可以回答任何其他 API。
【问题讨论】:
标签: java google-api google-drive-api