查找最大更改戳

时间:2012-05-02 22:13:30

标签: google-docs-api google-drive-api

我正在使用gdata-python-client。有没有办法获得最大改变戳?

我使用gdata.docs.DocsClient.GetAllResources()构建了完整的目录结构。要轮询新的更改,我想获得最大更改戳。

我现在唯一能想到的就是迭代地请求多个DocsClient.GetChanges(changestamp = i + 100,max_results = 100) - 如果我有数千个更改,这将是代价高昂的。

感谢

1 个答案:

答案 0 :(得分:3)

您可以调用GetMetadata来检索有关用户的信息并检查docs:largestChangestamp元素的值:

https://developers.google.com/google-apps/documents-list/#getting_general_information_about_a_users_account