我们正在使用Google Calendar API v2将Google日历事件同步到我们的桌面应用程序。应用程序检索所有日历事件并将其保留在本地以供将来参考。
我与我的“记住牛奶”日历有同步问题,我使用我的Google日历订阅了该日历。
这是我的申请流程:
最初使用以下HTTP请求获取日历列表: https://www.google.com/calendar/feeds/default/allcalendars/full
使用上一个请求中获取的日历ID从日历中获取所有事件:http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true
逐个处理每个日历并将日历更新最小标记值保存为上次日历同步,在下次同步时使用此更新的最小值来检索更新的事件。
文档说它应该只提供更新的事件,但我的“记住牛奶”日历,总是将所有事件作为更新事件(每20到30分钟)。
我在这里做错了什么?
答案 0 :(得分:0)
查看您的查询字符串。您缺少updated-min值。查询字符串应该是读。
http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true&updated-min=2005-08-09T10:57:00-