无法使用日历API在Google日历中获取活动的开始时间

时间:2014-03-05 11:56:43

标签: python google-api google-calendar-api gdata

query = gdata.calendar.client.CalendarEventQuery()
query.max_results = 100
feed = calendar_client.GetCalendarEventFeed(CALENDAR_URL, q=query)

for i, an_event in enumerate(feed.entry):
   print an_event.when

最后一行打印日历中所有事件的空列表。如果我删除CALENDAR_URL并使用我帐户的默认日历,那么我可以看到每个事件的开始/结束时间。但是,对于共享日历,我似乎无法做到这一点(虽然我可以在WebGUI中看到所有这些信息,但我也拥有使用我的用户名修改日历的所有权限 - 即使我不拥有它)。

知道我在这里做错了吗?

0 个答案:

没有答案