GData 和 iOS 从所有日历中获取所有事件?
我有一个谷歌日历,里面有 5 个日历。 我知道如何获取每个日历以获取其事件,但我正在寻找一种同时获取所有日历的方法?
任何帮助将不胜感激?
谢谢 沙尼
I have a google calendar with 5 calendars in it.
I know how to fetch each calendar to get its events, but i am looking for a way to fetch all the calendars at once?
Any help will be appreciated?
Thanks
Shani
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 v3 之前,API 不允许您通过单个请求获取多个日历,也不允许您在单个请求中操作多个日历。
如果这对您来说真的很重要(您正在尝试减少请求,所以我猜这与性能有关),您可以使用 Google App Engine 创建一个可以为您执行此工作的函数。但我不确定您会看到性能的大幅跃升。
现在 v3 已经发布,您可以通过一个请求从多个日历中获取一些信息。
这是一个例子:
https://code.google.com/apis/calendar/v3/using .html#freebusy
Before v3, 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.
Now that v3 is out, you can get some information from several calendar on a single request.
Here's an example:
https://code.google.com/apis/calendar/v3/using.html#freebusy