我使用Microsoft Graph的RESTAPI从电子邮件对象中检索了一些附件,如下所示: $Header = Get-Header -theRequest $Credential Write-Output $attName # Successfully displays the name of the attachment
} 我接下来要做的是将这个附件的内容输
在JavaScript文件中,我使用REST与Office365API进行邮件通信,我得到消息,但没有收到消息的ContentBytes,因为我需要将消息(电子邮件)保存在具有eml扩展名的文件中。守则是:
var messageEndpoint = "https://outlook.office.com/api/v2.0/me/messages