【发布时间】:2021-09-17 05:42:54
【问题描述】:
不知道我在这里做错了什么。我希望将与与会者的会议添加到组织者的日历中,然后让 Exchange 自动向与会者发送会议邀请。我希望与会者能够根据 Outlook 中的行为接受、拒绝等邀请,但我的请求目前让与会者在添加活动时自动接受邀请。知道我做错了什么吗?
请求:
POST /users/{organizer@email.com}/events
{
"subject": "My Subject",
"start": {
"dateTime": "2021-10-10T12:00:00",
"timeZone": "Singapore Standard Time"
},
"end": {
"dateTime": "2021-10-10T14:00:00",
"timeZone": "Singapore Standard Time"
},
"responseRequested": true,
"attendees": [
{
"emailAddress": {
"address": "attendee@email.com",
"name": "Attendee"
},
"type": "required"
}
]
}
回复:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(...)/events/$entity",
"@odata.etag": "..."",
"id": "AAMk...",
"createdDateTime": "...",
"lastModifiedDateTime": "...",
"changeKey": "...",
"categories": [],
"transactionId": null,
"originalStartTimeZone": "Singapore Standard Time",
"originalEndTimeZone": "Singapore Standard Time",
"iCalUId": "040000008200E00074C5B7101A82E008...",
"reminderMinutesBeforeStart": 15,
"isReminderOn": true,
"hasAttachments": false,
"subject": "My Subject",
"bodyPreview": "",
"importance": "normal",
"sensitivity": "normal",
"isAllDay": false,
"isCancelled": false,
"isOrganizer": true,
"responseRequested": true,
"seriesMasterId": null,
"showAs": "busy",
"type": "singleInstance",
"webLink": "...",
"onlineMeetingUrl": null,
"isOnlineMeeting": false,
"onlineMeetingProvider": "unknown",
"allowNewTimeProposals": true,
"isDraft": false,
"hideAttendees": false,
"recurrence": null,
"onlineMeeting": null,
"responseStatus": {
"response": "organizer",
"time": "0001-01-01T00:00:00Z"
},
"body": {
"contentType": "html",
"content": "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><meta name=\"Generator\" content=\"Microsoft Exchange Server\"><!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style></head><body><font size=\"2\"><span style=\"font-size:11pt;\"><div class=\"PlainText\"> </div></span></font></body></html>"
},
"start": {
"dateTime": "...",
"timeZone": "Singapore Standard Time"
},
"end": {
"dateTime": "...",
"timeZone": "Singapore Standard Time"
},
"location": {
"displayName": "",
"locationType": "default",
"uniqueIdType": "unknown",
"address": {},
"coordinates": {}
},
"locations": [],
"attendees": [
{
"type": "required",
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"emailAddress": {
"name": "Attendee",
"address": "attendee@email.com"
}
}
],
"organizer": {
"emailAddress": {
"name": "Organizer",
"address": "organizer@email.com"
}
}
}
【问题讨论】: