尝试获取日历事件,以便允许用户选择与会者和会议室可用的会议时间。
我们正在使用 Outlook 日历 REST API v2 - findMeetingTimes:https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes
该请求返回几乎所有事件。
由于某种原因,执行请求的用户创建的事件不包含在响应中。这意味着会议室或与会者似乎是免费的,即使他们的日历中有活动。
以下是仅会议室作为与会者的示例请求。在为会议室和用户请求事件时,我们看到了相同的问题行为。
https://outlook.office.com/api/v2.0/users('[email protected] /cdn-cgi/l/email-protection')/findmeetingtimes
{
"Attendees": [{
"Type": "Required",
"EmailAddress": {
"Name": "Palo Alto meeting room",
"Address": "[email protected] /cdn-cgi/l/email-protection"
}
}],
"TimeConstraint": {
"Timeslots": [{
"Start": {
"DateTime": "2017-02-11T22:00:00",
"TimeZone": "GMT Standard Time"
},
"End": {
"DateTime": "2017-04-29T20:59:59",
"TimeZone": "GMT Standard Time"
}
}]
},
"LocationConstraint": {
"IsRequired": "false",
"SuggestLocation": "false",
"Locations": [{
"ResolveAvailability": "false",
"DisplayName": "Palo Alto meeting room",
"LocationEmailAddress": "[email protected] /cdn-cgi/l/email-protection"
}]
},
"MinimumAttendeePercentage": "0",
"MaxCandidates": "1000",
"ReturnSuggestionReasons": "true"
}
任何帮助都感激不尽。