Search code examples
gdatagoogle-docs-apigoogle-drive-api

Using changestamp in GoogleDocs (null changestamp)


I am trying to find the max changestamp so I can start using it. I tried the following:

URL url = "https://docs.google.com/feeds/default/private/changes?v=3"
ChangelogFeed foo = service.getFeed(url, ChangelogFeed.class);
LargestChangestamp stamp = foo.getLargestChangestamp();

stamp is always null.

Is this the way to get the largest changestamp, or do I need to set it first in order to use it?


Solution

  • The largest changestamp is also available in the user metadata feed. See the "docs:largestChangestamp" element within the response protocol tab here,

    I'm not sure the java api exposes the largestChangestamp property directly yet - last time I checked it was hidden in the xmlBlob property, and I had to do an xml parse to grab it out.