批量查询多个 Google 日历中的事件
有没有办法在单个批量请求中查询多个日历(在同一个 Google 帐户中)中的事件?
我已阅读此处的 Google 文档,但是这并没有真正帮助。
我真正想做的是扫描给定用户的日历并获取每个用户的事件列表。
python/gdata 中的一个例子会很棒。
编辑:看起来像这回答了我的问题。 TL;DR 不可能。
Is there a way to query for events in multiple calendars (in the same Google account) in a single batch request?
I've been through the Google documentation here, but it hasn't really helped.
What I'm trying to do really is scan through a given user's calendars and get a list of events for each one.
An example in python/gdata would be amazing.
EDIT: Looks like this answers my question. TL;DR not possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短回答:没有
长回答:API 不允许您通过单个请求获取多个日历,也不允许您在单个请求中操作多个日历。
如果这对您来说真的很重要(您正在尝试减少请求,所以我猜这与性能有关),您可以使用 Google App Engine 创建一个可以为您执行此工作的函数。但我不确定您会看到性能的大幅跃升。
Short answer: No
Long answer: The API does not allow you to fetch more than one calendar with a single request and it doesn't allow you to manipulate more than one calendar in a single request.
If this is really important to you (you're trying to reduce requests so I guess it's about performance), you could possible use the Google App Engine to create a function that would perform this work for you. I'm not sure you would see a big jump in performance though.