我怎样才能得到在谷歌文档修订历史使用脚本? [英] How can i get the revision history in google docs using script?

查看:93
本文介绍了我怎样才能得到在谷歌文档修订历史使用脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人对这个问题有答案吗?我该怎么做?一些想法?我已经阅读了很多像这样的问题,但我真的没有找到答案。 (对不起英文,我是巴西人)。

解决方案

我无法相信,但似乎是不可能的以编程方式获取Google Docs文件的修订历史版本。我彻底检查了 Drive SDK ,我们似乎只能下载Google以某种其他格式文档(可能会丢失转换的详细信息)。从修订版本中不会生成新的Google文档,或者甚至可以恢复当前文件的修订版本。

所以,您可以下载特定修订历史记录作为docx,然后重新上传它转换回Google文档(唉!),然后正常访问。为此,您必须启用Drive API v2高级服务(在资源菜单下)。并使用Drive SDK参考(上面链接)来获取修订历史记录并做这个manouver。


Someone have the answer for this question? How can I do it? Some ideas? I'he already read a lot of questions same like this one but I really haven't found a answer. (sorry for the english, I'm brazilian).

解决方案

I can't believe it, but it seems to be impossible to get a revision-history version of a Google Docs "file" programatically. I checked the Drive SDK thoroughly and it seems all we can do is download the Google Document in some other format (probably losing details on the conversion). There's no generating a new Google Document from the revision, or even restoring a revision over the current file.

So, you could "download" a specific revision-history as a docx and then re-upload it converting back to Google Docs (ugh!), and then access normally. To do so you'll have to enable the Drive API v2 advanced service (under the Resources menu). And use the Drive SDK reference (linked above) to get the revision history and do this manouver.

这篇关于我怎样才能得到在谷歌文档修订历史使用脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆