当我使用此API获取活动时
GET https://graph.microsoft.com/v1.0/me/calendarview?startdatetime=2018-04-11T00:00:00.000Z&enddatetime=2018-04-18T00:00:00.000Z
如果是Skype会议,则会有一个onlineMeetingUrl
字段并有会议网址。
但是,如果是Microsoft Teams会议,则onlineMeetingUrl
为空。会议网址还有另一个特殊字段吗?感谢
以下是Microsoft Teams会议:
{
"@odata.etag": "W/\"oCWUK/b/Ok2lJzxdSR2E9QABXMy2tg==\"",
"id": "AQMkADAwATM0MDAAMS1hZjgyLTczYjAtMDACLTAwCgBGAAADgXLIICAAoo9AoyFmP0_4_YQHAKAllCv2-zpNpSc8XUkdhPUAAAIBDQAAAKAllCv2-zpNpSc8XUkdhPUAAVypLdQAAAA=",
"createdDateTime": "2018-04-11T02:58:26.9190336Z",
"lastModifiedDateTime": "2018-04-11T02:58:26.9971595Z",
"changeKey": "oCWUK/b/Ok2lJzxdSR2E9QABXMy2tg==",
"categories": [],
"originalStartTimeZone": "Pacific Standard Time",
"originalEndTimeZone": "Pacific Standard Time",
"iCalUId": "040000008200E00074C5B7101A82E00800000000F1F424ED40D1D301000000000000000010000000F51FB6A3836CAB4985F44D2D45E3AC0F",
"reminderMinutesBeforeStart": 15,
"isReminderOn": true,
"hasAttachments": false,
"subject": "Hi",
"bodyPreview": "Hello",
"importance": "normal",
"sensitivity": "normal",
"isAllDay": false,
"isCancelled": false,
"isOrganizer": false,
"responseRequested": true,
"seriesMasterId": null,
"showAs": "tentative",
"type": "singleInstance",
"webLink": "https://outlook.live.com/owa/?itemid=AQMkADAwATM0MDAAMS1hZjgyLTczYjAtMDACLTAwCgBGAAADgXLIICAAoo9AoyFmP0%2B4%2BYQHAKAllCv2%2FzpNpSc8XUkdhPUAAAIBDQAAAKAllCv2%2FzpNpSc8XUkdhPUAAVypLdQAAAA%3D&exvsurl=1&path=/calendar/item",
"onlineMeetingUrl": null,
"responseStatus": {
"response": "notResponded",
"time": "0001-01-01T00:00:00Z"
},
"body": {
"contentType": "html",
"content": "Hello"
},
"start": {
"dateTime": "2018-04-12T03:00:00.0000000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2018-04-12T03:30:00.0000000",
"timeZone": "UTC"
},
"location": {
"displayName": "Here",
"locationType": "default",
"uniqueId": "Here",
"uniqueIdType": "private"
},
"locations": [
{
"displayName": "Here",
"locationType": "default",
"uniqueId": "Here",
"uniqueIdType": "private"
}
],
"recurrence": null,
"attendees": [
{
"type": "required",
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"emailAddress": {
"name": "Jack",
"address": "Jack@example.com"
}
},
{
"type": "required",
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"emailAddress": {
"name": "Rose",
"address": "Rose@example.com"
}
}
],
"organizer": {
"emailAddress": {
"name": "Jack",
"address": "Jack@example.com"
}
}
}
答案 0 :(得分:1)
我们正在与Microsoft Graph团队合作,既可以过滤在线会议,又可以区分团队和Skype for Business会议(正如您所发现的那样,他们使用不同的属性)。
我不知道具体的时间表,但您应该会在接下来的几个月内在Microsoft Graph的测试终端中看到这一点。
更新:在其正式曝光之前,有一种无证的方式来实现它:
https://graph.microsoft.com/v1.0/me/events?$expand=singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name SkypeTeamsMeetingUrl')