在为TimeConstraint ActivityDomain值指定“不受限制”时,结果仅显示工作时间。我正在尝试从MST上午6点至晚上8点获取可用时间,并且仅从MST上午8点至6:30返回时间(我没有看到比这晚的返回时间了。)调整开始/结束时间无效。>
我正在测试的帐户的工作时间定义为MST的上午6点至晚上8点。我正在20个以上的用户上运行可用性,即使'ActivityDomain'是'Unrestricted',他们都显示相同的开始/结束时间。预先感谢!
请求:{
"MaxCandidates":100,
"Attendees":[],
"LocationConstraint":{
"IsRequired":"false",
"SuggestLocation":"false"
},
"TimeConstraint":{
"ActivityDomain":"Unrestricted",
"Timeslots":[{
"Start":{
"DateTime":"2018-08-21T06:00:00.0000000",
"TimeZone":"Mountain Standard Time"},
"End":{
"DateTime":"2018-09-01T20:00:00.0000000",
"TimeZone":"Mountain Standard Time"}
}]
},
"MeetingDuration":"PT1H",
"ReturnSuggestionReasons":"true"}
PHP结果(仅显示前两天):
[availableMeetingTimes] => Array
(
[2018-08-21] => Array
(
[0] => stdClass Object
(
[startHour] => 8
[endHour] => 9
[start] => 2018-08-21T08:00:00.0000000
[end] => 2018-08-21T09:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 8:00 AM - 9:00 AM
)
[1] => stdClass Object
(
[startHour] => 9
[endHour] => 10
[start] => 2018-08-21T09:00:00.0000000
[end] => 2018-08-21T10:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 9:00 AM - 10:00 AM
)
[2] => stdClass Object
(
[startHour] => 10
[endHour] => 11
[start] => 2018-08-21T10:00:00.0000000
[end] => 2018-08-21T11:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 10:00 AM - 11:00 AM
)
[3] => stdClass Object
(
[startHour] => 11
[endHour] => 12
[start] => 2018-08-21T11:00:00.0000000
[end] => 2018-08-21T12:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 11:00 AM - 12:00 PM
)
[4] => stdClass Object
(
[startHour] => 12
[endHour] => 13
[start] => 2018-08-21T12:00:00.0000000
[end] => 2018-08-21T13:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 12:00 PM - 1:00 PM
)
[5] => stdClass Object
(
[startHour] => 14
[endHour] => 15
[start] => 2018-08-21T14:00:00.0000000
[end] => 2018-08-21T15:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 2:00 PM - 3:00 PM
)
[6] => stdClass Object
(
[startHour] => 15
[endHour] => 16
[start] => 2018-08-21T15:00:00.0000000
[end] => 2018-08-21T16:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 3:00 PM - 4:00 PM
)
[7] => stdClass Object
(
[startHour] => 16
[endHour] => 17
[start] => 2018-08-21T16:00:00.0000000
[end] => 2018-08-21T17:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 4:00 PM - 5:00 PM
)
[8] => stdClass Object
(
[startHour] => 17
[endHour] => 18
[start] => 2018-08-21T17:00:00.0000000
[end] => 2018-08-21T18:00:00.0000000
[date] => Tue. 08/21/2018
[displayText] => 5:00 PM - 6:00 PM
)
)
[2018-08-22] => Array
(
[0] => stdClass Object
(
[startHour] => 8
[endHour] => 9
[start] => 2018-08-22T08:00:00.0000000
[end] => 2018-08-22T09:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 8:00 AM - 9:00 AM
)
[1] => stdClass Object
(
[startHour] => 9
[endHour] => 10
[start] => 2018-08-22T09:00:00.0000000
[end] => 2018-08-22T10:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 9:00 AM - 10:00 AM
)
[2] => stdClass Object
(
[startHour] => 10
[endHour] => 11
[start] => 2018-08-22T10:00:00.0000000
[end] => 2018-08-22T11:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 10:00 AM - 11:00 AM
)
[3] => stdClass Object
(
[startHour] => 11
[endHour] => 12
[start] => 2018-08-22T11:00:00.0000000
[end] => 2018-08-22T12:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 11:00 AM - 12:00 PM
)
[4] => stdClass Object
(
[startHour] => 12
[endHour] => 13
[start] => 2018-08-22T12:00:00.0000000
[end] => 2018-08-22T13:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 12:00 PM - 1:00 PM
)
[5] => stdClass Object
(
[startHour] => 13
[endHour] => 14
[start] => 2018-08-22T13:00:00.0000000
[end] => 2018-08-22T14:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 1:00 PM - 2:00 PM
)
[6] => stdClass Object
(
[startHour] => 14
[endHour] => 15
[start] => 2018-08-22T14:00:00.0000000
[end] => 2018-08-22T15:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 2:00 PM - 3:00 PM
)
[7] => stdClass Object
(
[startHour] => 15
[endHour] => 16
[start] => 2018-08-22T15:00:00.0000000
[end] => 2018-08-22T16:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 3:00 PM - 4:00 PM
)
[8] => stdClass Object
(
[startHour] => 16
[endHour] => 17
[start] => 2018-08-22T16:00:00.0000000
[end] => 2018-08-22T17:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 4:00 PM - 5:00 PM
)
[9] => stdClass Object
(
[startHour] => 17
[endHour] => 18
[start] => 2018-08-22T17:00:00.0000000
[end] => 2018-08-22T18:00:00.0000000
[date] => Wed. 08/22/2018
[displayText] => 5:00 PM - 6:00 PM
)
)
与已解决有关:https://github.com/microsoftgraph/microsoft-graph-docs/issues/580