首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >只列出私有日历- Google v3

只列出私有日历- Google v3
EN

Stack Overflow用户
提问于 2014-11-15 19:55:13
回答 2查看 166关注 0票数 0

这将为我提供v3中的日历列表:

‘获取日历Dim oList的列表为IList(Of CalendarListEntry) =IList

但它为中小企业提供了所有日历的列表,甚至包括谷歌的日历,比如“假日”或“生日”。

在v2中,我可以这样做,只需获得用户日历列表:

CalendarQuery查询=新CalendarQuery();query.Uri =新Uri("https://www.google.com/calendar/feeds/default/owncalendars/full");CalendarFeed resultFeed =(CalendarFeed)m_Service.Query(查询);

我不知道如何用v3来完成这个任务。

安德鲁

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-12-01 21:59:42

代码语言:javascript
复制
Dim oList As IList(Of CalendarListEntry) = m_Service.CalendarList.List().Execute().Items() For Each oCalendarEntry As Data.CalendarListEntry In oList
If (oCalendarEntry.AccessRole = "owner") Then
    ' Continue
票数 0
EN

Stack Overflow用户

发布于 2014-11-17 17:25:49

在CalendarList: list中,添加minAccessRole =" owner ",它只列出用户(日历所有者)的私人日历。它不会显示谷歌的“假日”或“生日”。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26950046

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档