开发者

Using ExecuteBatch from Python on Google Calendars API

I'm trying to figure out how to add a series of events to a non-default calendar (and remove some) as a batch, but there's no hint of how to do it in Google's frankly awful documentation.

Has anyone cracked this nut or does anyone know where there 开发者_如何学Pythonis actually useful documentation on using the Google Calendar API?


Figured it out in the end. The key is using the right batch URL in ExecuteBatch:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜