我有一个要求,我需要使用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
}
这里的中心点似乎是您希望/ Me / Calendars包含共享日历。它不是。要访问已共享的其他人的日历,您必须通过/Users/<id>/Calendars/
URL访问。
例如,如果[email protected]
登录,并且[email protected]与他/她共享了他的日历,那么:
/Me/Calendars
只会在User1邮箱中显示日历。希望能帮助到你。