似乎是这个APIhttps://docs.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http可以与应用程序令牌一起使用。]
但是当我使用这种POST格式时:
/users/{id | userPrincipalName}/calendars/{id}/events
我想象第一个id =是用户365的ID
结果是这样:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'AAMkADRiNWMwZDIwLTNkNWMtNDlhZi04ODAxLTQyZjI0NGZjZjZiYgBGAAAAAADdzAdsxNzoS5NsTnjM9VXMBwDeKuBOt9H8SaQ6MfKsS4oyAAAAAAEGAADeKuBOt9H8SaQ6MfKsS4oyAAAAADKcAAA='.",
"innerError": {
"request-id": "11055856-32b4-4485-bf28-23e380d9e4ed",
"date": "2020-05-27T13:22:23"
}
}
}
您有任何建议吗?
@@感谢@Homungus评论...在日历字符串中缺少s,现在可以工作!