这将为我提供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来完成这个任务。
安德鲁
发布于 2014-12-01 21:59:42
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发布于 2014-11-17 17:25:49
在CalendarList: list中,添加minAccessRole =" owner ",它只列出用户(日历所有者)的私人日历。它不会显示谷歌的“假日”或“生日”。
https://stackoverflow.com/questions/26950046
复制相似问题