English 中文(简体)
How to get previous versions of a spreadsheet with 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?

最佳回答

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.

问题回答

暂无回答




相关问题
Excel spreadsheet like library in Swing (=improved JTable)

I m searching for a free, open-source if possible, Java swing library that improves the existent JTable (which is very simple). I want to do an application with a spreadsheet similar to Excel one. ...

writing large excel spreadsheets

has anybody found a library that works well with large spreadsheets? I ve tried apache s POI but it fails miserably working with large files - both reading and writing. It uses massive amounts of ...

Problem casting field when querying spreadsheet

I am trying to query an .xls spreadsheet with VBScript, but I have run into an issue when trying to cast a field. I connect to the spreadsheet like this. Set objConnection = CreateObject("ADODB....

热门标签