获取Microsoft Graph API日历发布的URL

问题描述 投票:0回答:1

我有一个要求,我需要使用microsoft graph api访问日历的公共共享URL(也想使用API​​共享日历)。但似乎使用GraphServiceClient无法使用它。我想要实现的是

        var cal = await graphClient...<anything>....Calendar.Request(options).GetAsync();
        if(cal.CanShare.HasValue && cal.CanShare.Value)
        {
            // get the published URL of the calendar here
        }
c# azure-ad-graph-api microsoft-graph-calendar
1个回答
0
投票

这里的中心点似乎是您希望/ Me / Calendars包含共享日历。它不是。要访问已共享的其他人的日历,您必须通过/Users/<id>/Calendars/ URL访问。

例如,如果[email protected]登录,并且[email protected]与他/她共享了他的日历,那么:

  1. /Me/Calendars只会在User1邮箱中显示日历。
  2. /Users/[email protected]/Calendars将显示user2与user1共享的日历

希望能帮助到你。

© www.soinside.com 2019 - 2024. All rights reserved.