如何从Office 365邮件REST API中的ItemAttachment检索FileAttachment? [英] How to retrieve FileAttachment from ItemAttachment in Office 365 Mail REST API?
问题描述
有关更多信息,请参见此线程语境.在弄清楚如何通过Office 365邮件REST API从邮件中检索ItemAttachments之后,我现在遇到了另一个问题:从ItemAttachments中检索FileAttachments.
See this thread for more context. After figuring out how to retrieve ItemAttachments from messages via the Office 365 Mail REST API, I'm now running into another issue: retrieving FileAttachments from ItemAttachments.
据我所知,API指南未涵盖此内容.当我确实检索ItemAttachment时,"HasAttachment"键的值为"true",但我不知道如何检索它.
The API guides don't cover this (as far as I can tell). When I do retrieve an ItemAttachment, the "HasAttachment" key has a value of "true," but I can't figure out how to retrieve it.
我(盲目地)尝试了以下URI:
I've (blindly) tried the following URIs:
/api/v1.0/me/messages/{messageid}/附件/{itemattachmentid}?$expand=Microsoft.OutlookServices.ItemAttachment/Item/附件
/api/v1.0/me/messages/{messageid}/Attachments/{itemattachmentid}?$expand=Microsoft.OutlookServices.ItemAttachment/Item/Attachments
/api/v1.0/me/messages/{messageid}/附件/{itemattachmentid}?$ expand = Microsoft.OutlookServices.ItemAttachment/Item/Microsoft.OutlookServices.FileAttachment/File
/api/v1.0/me/messages/{messageid}/Attachments/{itemattachmentid}?$expand=Microsoft.OutlookServices.ItemAttachment/Item/Microsoft.OutlookServices.FileAttachment/File
/api/v1.0/me/messages/{messageid}/Attachments/{itemattachmentid}?$ expand = Microsoft.OutlookServices.ItemAttachment/Item/File
/api/v1.0/me/messages/{messageid}/Attachments/{itemattachmentid}?$expand=Microsoft.OutlookServices.ItemAttachment/Item/File
很明显,我不确定自己在做什么:P
Clearly I'm not sure what I'm doing :P
推荐答案
对不起,目前不支持此功能.我们会将其放在我们的产品待办事项列表中.
Sorry, this isn't currently supported today. We will put this on our product backlog.
这篇关于如何从Office 365邮件REST API中的ItemAttachment检索FileAttachment?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!