我正在使用gdata-python-client。有没有办法获得最大改变戳?
我使用gdata.docs.DocsClient.GetAllResources()构建了完整的目录结构。要轮询新的更改,我想获得最大更改戳。
我现在唯一能想到的就是迭代地请求多个DocsClient.GetChanges(changestamp = i + 100,max_results = 100) - 如果我有数千个更改,这将是代价高昂的。
感谢
答案 0 :(得分:3)
您可以调用GetMetadata来检索有关用户的信息并检查docs:largestChangestamp元素的值: