It's supposed to be a DateTime representation of the last time the
feed was updated but I seem to get the current date every time I
request the feed:
Query myQuery = new Query(feedUrl);
myQuery.setUpdatedMin(new DateTime(lastStartTime)); // I
store the
<updated> from the last run in Date format
myQuery.setMaxResults(1000);
myQuery.setStringCustomParameter("showdeleted","true");
myFeed = myService.query(myQuery, ContactFeed.class);
System.out.println("Updated attribute is " + myFeed.getUpdated
()); // Even though no update to the feed was performed,
//
the timestamp changes at every run
Official Google documentation:
http://code.google.com/apis/contacts/docs/3.0/developers_guide_java.html#retrieving_with_query
"Note: To track incremental changes to a contact list, do the
following: When you send a request for a feed, keep track of the value
of the feed's <updated> element. Then you can later retrieve only the
contacts that have changed since the previous request by setting
updated-min to that <updated> value, and setting showdeleted to true."
Any suggestion?
Thanks for your help.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.