findmeetingtimes中的Outlook Rest API错误

时间:2017-07-10 12:33:42

标签: c# outlook office365 office365api

我遇到了以下Outlook Rest API的问题:

outlook.office.com/api/v2.0/me/findmeetingtimes

特别是我发现只有在请求的时间段被设置为o' Clock或Half-Past所请求的时间时,API才有效。

例如,如果我发送以下请求:

{
"Attendees": [],
"TimeConstraint": {
"ActivityDomain": "Unrestricted",
"Timeslots": [{
"Start": {
"DateTime": "2032-07-10T07:45:00",
"TimeZone": "UTC"
},
"End": {
"DateTime": "2032-07-10T08:45:00",
"TimeZone": "UTC"
}
}]
},
"MeetingDuration": "PT1H",
"MaxCandidates": 100
}

API在RESPONSE后返回:

{
    "EmptySuggestionsReason": "OrganizerUnavailable",
    "MeetingTimeSuggestions": []
}

而是使用以下请求:

{
"Attendees": [],
"TimeConstraint": {
"ActivityDomain": "Unrestricted",
"Timeslots": [{
"Start": {
"DateTime": "2032-07-10T07:30:00",
"TimeZone": "UTC"
},
"End": {
"DateTime": "2032-07-10T08:30:00",
"TimeZone": "UTC"
}
}]
},
"MeetingDuration": "PT1H",
"MaxCandidates": 100
}

RESPONSE正确显示:

{
    "EmptySuggestionsReason": "",
    "MeetingTimeSuggestions": [
        {
            "Confidence": 100,
            "OrganizerAvailability": "Free",
            "MeetingTimeSlot": {
                "Start": {
                    "DateTime": "2032-07-10T07:30:00.0000000",
                    "TimeZone": "UTC"
                },
                "End": {
                    "DateTime": "2032-07-10T08:30:00.0000000",
                    "TimeZone": "UTC"
                }
            },
            "AttendeeAvailability": [],
            "Locations": [
                {
                    "DisplayName": "Sala Break A",
                    "LocationEmailAddress": ""
                },
                {
                    "DisplayName": "Milano, MI, Italia",
                    "LocationEmailAddress": "",
                    "LocationUri": "",
                    "Address": {
                        "Type": "Home",
                        "Street": "undefined, undefined",
                        "City": "Milano",
                        "State": "Italia",
                        "CountryOrRegion": "MI",
                        "PostalCode": ""
                    },
                    "Coordinates": {
                        "Latitude": 45.4654219,
                        "Longitude": 9.18592430000001
                    }
                },
                {
                    "DisplayName": "Sala Break",
                    "LocationEmailAddress": ""
                },
                {
                    "DisplayName": "napoli",
                    "LocationEmailAddress": ""
                },
                {
                    "DisplayName": "Napoli",
                    "LocationEmailAddress": "",
                    "LocationUri": "https://www.bingapis.com/api/v6/geoentities/7216548829858889729",
                    "Address": {
                        "Type": "Home",
                        "Street": "",
                        "City": "Napoli",
                        "State": "Campania",
                        "CountryOrRegion": "Italia",
                        "PostalCode": ""
                    },
                    "Coordinates": {
                        "Latitude": 40.8401,
                        "Longitude": 14.2523
                    }
                }
            ]
        }
    ]
}

我认为这是一个Bug。

是否有可能修复相同的问题? 有没有人知道有效的解决方案不能解决这个问题?

0 个答案:

没有答案