gpt4 book ai didi

calendar - 如何通过 MS Graph 创建以房间为位置的事件?

转载 作者:行者123 更新时间:2023-12-02 19:46:16 25 4
gpt4 key购买 nike

我正在尝试通过 MS Graph to Calendar 创建一个事件,其中的空间已在我的 Outlook 帐户中设置。但问题是,如果不将房间添加为与会者,则无法预订房间。

如果我只添加房间作为位置,房间帐户中的日历将不会收到通知和预订。

{
"subject": "Let's go picnicking",
"body": {
"contentType": "HTML",
"content": "Does late morning work for you?"
},
"start": {
"dateTime": "2018-03-20T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-03-20T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"coordinates": {"@odata.type": "microsoft.graph.outlookGeoCoordinates"},
"displayName":"RM.Papaya",
"locationType": "conferenceRoom",
"address": {"@odata.type": "microsoft.graph.physicalAddress"}
},
"locations": [
{
"displayName": "RM.Papaya",
"locationType": "conferenceRoom"
}
],
"attendees": [
{
"emailAddress": {
"address":"Matthew_Liao@Ginaworks.onmicrosoft.com",
"name": "Matthew Liao"
},
"type": "required"
}
]
}

但是,如果我将房间也添加为位置和与会者,则会通知房间帐户中的日历,但位置的显示只是与房间帐户无关的文本。

{
"subject": "Let's go picnicking",
"body": {
"contentType": "HTML",
"content": "Does late morning work for you?"
},
"start": {
"dateTime": "2018-03-20T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-03-20T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"displayName":"RM.Papaya",
"locationType": "conferenceRoom",
"address": {"@odata.type": "microsoft.graph.physicalAddress"}
},
"locations": [
{
"displayName": "RM.Papaya",
"locationType": "conferenceRoom"
}
],
"attendees": [
{
"emailAddress": {
"address":"Matthew_Liao@Ginaworks.onmicrosoft.com",
"name": "Matthew Liao"
},
"type": "required"
},
{
"emailAddress": {
"address":"rm.papaya@Ginaworks.onmicrosoft.com",
"name": "RM.Papaya"
},
"type": "required"
}
]
}

这合理或符合逻辑吗?或者我的代码有什么错误吗?感谢您的帮助。

最佳答案

显示问题是 API 的限制。这是我们希望解决的问题,但我无法冒险猜测这种情况何时会发生。

关于calendar - 如何通过 MS Graph 创建以房间为位置的事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49164778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com