简体   繁体   English

Microsoft Graph API getSchedule 按日历筛选

[英]Microsoft Graph API getSchedule filter by calendars

I'm using microsoft graph API and want to get user's busy slots for particular calendars, so there is an end point /getSchedule which takes body like :我正在使用 microsoft graph API 并希望为特定日历获取用户的繁忙时段,因此有一个端点/getSchedule其主体如下:

{        
    "schedules": ["adelev@contoso.onmicrosoft.com", "meganb@contoso.onmicrosoft.com"],
    "startTime": {
        "dateTime": "2019-03-15T09:00:00",
        "timeZone": "Pacific Standard Time"
    },
    "endTime": {
        "dateTime": "2019-03-15T18:00:00",
        "timeZone": "Pacific Standard Time"
    },
    "availabilityViewInterval": "60"
} 

In this endpoint I want to filter by calendars, I tried passing calendarId in schedules array instead of email it's giving error of invalid email.在这个端点中,我想按日历过滤,我尝试在 schedules 数组中传递 calendarId 而不是电子邮件,它给出了无效电子邮件的错误。

there is similar api provided in google calendar /freeBusy that accepts array of calendarIds and returns slots for those calendars only.谷歌日历/freeBusy中提供了类似的 api,它接受 calendarIds 数组并仅返回这些日历的插槽。 I want same functionality in microsoft calendars as well, is this possible?我也想要微软日历中的相同功能,这可能吗?

This feature only works with the main calendar of the users you're passing in (via their email address).此功能仅适用于您传入的用户的主日历(通过他们的电子邮件地址)。

As of today it's not possible to use that method with other calendars than main user's calendars, you'd have to query those calendars yourself and determine the availability time yourself.截至今天,除了主用户的日历之外,无法将该方法与其他日历一起使用,您必须自己查询这些日历并自己确定可用时间。

You can request such feature on uservoice .您可以在uservoice上请求此类功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM