如何限制Google Docs API返回的修订数量?
我使用 gdata lib 在 python 中有以下代码:
feed = self.client.GetDocList(uri='/feeds/default/private/full')
for entry in feed.entry:
# get the revisions for this entry
revisions_feed = self.client.GetRevisions(entry.resource_id.text)
问题是我只需要最后的 n 修订版,而不是全部。如果我能得到自某个日期以来的所有修订,我也会很高兴。
那么,是否有可能:
- 获取自某个日期以来的所有修订?
- 获取最后 N 次修订?
I have the following code in python, using the gdata lib:
feed = self.client.GetDocList(uri='/feeds/default/private/full')
for entry in feed.entry:
# get the revisions for this entry
revisions_feed = self.client.GetRevisions(entry.resource_id.text)
The problem is that I only need the last n revisions, not all of them. I would be happy as well if I could get all the revisions since a certain date.
So, is it possible to:
- get all the revisions since a certain date?
- get the last N revisions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自从我提出这个问题以来,Google 发布了一个新的 API 端点,允许这种行为:http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#Changes
所以,现在我使用:
Since I asked the question, Google released a new API endpoint that allows this behavior: http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#Changes
So, now I use: