如何使用 Google Docs API 获取电子表格的早期版本?

发布于 2024-08-31 00:41:08 字数 93 浏览 2 评论 0原文

Google Docs 上的“以前版本”界面非常原始。它甚至不允许您选择两个任意版本进行比较(但如果我错了,请纠正我。)

如何通过 API 访问以前的版本?

The "previous version" interface on Google Docs is very primitive. It wouldn't even allow you to select two arbitrary versions for comparison (but correct me if I'm wrong.)

How can I access the previous versions via the API?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开浅夏 2024-09-07 00:41:08

文档列表 API 协议指南 (v3.0) 表示文档修订和任意文件修订可通过修订提要获得。

因此,您可以通过以下方式获取特定文档的修订版:

GET /feeds/default/private/full/<resource_id>/revisions HTTP/1.1

导出任何单个文档的内容时,基本上可以通过
访问修订版
Export?docId=&revision=0

您应该能够借助文档列表 API 的 Java 或 .NET 库自行构建这些 URI。据我了解,它们仍然是实验室项目。

查看更多信息:
http://code.google.com/apis/documents/docs /3.0/developers_guide_protocol.html#RevisionHistory

我记得在某处读到 Google 正在对其客户端库进行彻底检查,因此等待 Google I/O 2011 可能是明智之举。

The Protocol Guide for Document List API (v3.0) says that document revisions and arbitrary file revisions are available via the revisions feed.

So you can get revisions for a particular document with:

GET /feeds/default/private/full/<resource_id>/revisions HTTP/1.1

When exporting contents for any single document, revisions are basically accessed with
Export?docId=<doc_id>&revision=0

You should be able to construct those URIs yourself with the help of the Java or .NET libraries for the Documents List API. It's my understanding that they are still labs projects though.

See more at:
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#RevisionHistory

I remember reading somewhere that Google is doing an overhaul of their client libraries, so it might be smart to wait for Google I/O 2011 for example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文