开发者

Using ExecuteBatch from Python on Google Calendars API

开发者 https://www.devze.com 2023-01-06 07:58 出处:网络
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.

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

精彩评论

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

关注公众号