谷歌数据API
两个问题:
如何从特定日历中获取事件?以下链接可获取您主日历的活动:http:// www.google.com/calendar/feeds/[电子邮件受保护]/private/full 。
如何从使用 ContactsService 时返回给您的 ContactEntry 对象列表中获取联系人的出生日期?
提前致谢!
Two questions:
How do you get events from a specific Calendar? The following link gets events for your primary calendar: http://www.google.com/calendar/feeds/[email protected]/private/full .
And how do you get a contact's birth date from the list of ContactEntry objects that is returned to you when using the ContactsService?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我可能应该提供一些我的发现,以防其他人想知道这一点。就从公共日历获取日期而言,CalendarEntry 类包含 AtomLink 对象的通用列表。第一个的 AbsoluteUri 属性将为您提供该日历的 EventEntry 对象。这是一些示例代码:
我仍然不知道如何获取联系人的出生日期:/当我有更多时间时我会看看。
I should probably provide some of my findings in-case somebody else wants to know this. As far as getting the dates from public calendars are concerned, the CalendarEntry class contains a generic list of AtomLink objects. The very first one's AbsoluteUri property will provide you with the EventEntry objects for that calendar. Here is some sample code:
I still don't know how to get the Contact's birth date :/ I'll have a look at that when I have more time.