如何从 Office 365 REST API 检索 ItemAttachment 的附件?

How to retrieve attachments of an ItemAttachment from Office 365 REST API?

假设我有一个事件(有附件)附加到我的电子邮件,那么我将使用提供的 api 调用 here 并获取事件详细信息,但我看到 "Id" 响应中缺少 属性。作为附件的邮件也会发生同样的情况。我的问题是,如果我没有 eventId 或 messageId,那么我就无法获取它们的附件。

请查看下图,其中显示了所提供的 api 调用 here 的响应。

如前所述here,我们可以使用下面的api调用:

GET https://outlook.office.com/api/beta/me/messages/[message-id]?$expand=附件($expand=Microsoft.OutlookServices.ItemAttachment/Item($expand=Microsoft.OutlookServices.Event/Attachments))