【问题标题】:Google calendar sync issue with "Remember the milk" subscribed calendar“记住牛奶”订阅日历的 Google 日历同步问题
【发布时间】:2012-05-12 02:25:12
【问题描述】:

我们正在使用 Google Calendar API v2 将 Google 日历事件同步到我们的桌面应用程序。该应用程序检索所有日历事件并将其保存在本地以供将来参考。

我使用 Google 日历订阅的“记住牛奶”日历存在同步问题。

这是我的申请流程:

  1. 最初使用以下 HTTP 请求获取日历列表: https://www.google.com/calendar/feeds/default/allcalendars/full

  2. 使用上一个请求中获得的日历 ID 从日历中获取所有事件:http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true

  3. 逐个处理每个日历并将日历更新的最小值标记值保存为上次日历同步,在下一次同步中使用此更新的最小值来检索更新的事件。

文档说它应该只提供更新的事件,但我的“记住牛奶”日历总是将所有事件作为更新的事件(每 20 到 30 分钟)。

我在这里做错了什么?

【问题讨论】:

    标签: c++ google-calendar-api


    【解决方案1】:

    查看您的查询字符串。您缺少更新的最小值。查询字符串应该是这样的。

    http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true&updated-min=2005-08-09T10:57:00-
    

    【讨论】:

    • 我其实是在查询中使用了updated-min value查询参数。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-02-17
    • 1970-01-01
    • 2022-08-05
    • 1970-01-01
    • 2016-06-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多