在Google Calendars API上使用Python的ExecuteBatch

时间:2010-07-08 20:49:02

标签: python batch-file google-calendar-api

我正在试图弄清楚如何将一系列事件添加到非默认日历(并删除一些)作为批处理,但是没有任何关于如何在Google的可怕文档中做到这一点的提示。

有没有人破解过这个问题,或者有人知道哪里有关于使用Google Calendar API的实际有用文档?

1 个答案:

答案 0 :(得分:0)

最终计算出来。关键是在ExecuteBatch中使用正确的批处理URL:

uri = self.calendar.GetAlternateLink().href
batch_uri = uri + u'/batch'
calendar_service.ExecuteBatch(request_feed, batch_uri)