addFileAttachmentAsync 与 SharePoint 或 Onedrive

addFileAttachmentAsync with SharePoint or Onedrive

我想将 SharePoint Online 中的文档附加到带有 office.js api 的邮件中。

问题是 addFileAttachmentAsync 方法只有一个 url 作为参数,因此我目前只能附加 public 个可用文件,而不能附加受保护的文件。

在我的应用程序中,我可以在没有自定义服务器的情况下将 SharePoint 文件下载为 blob 或 base64。

是否可以使用 html5 文件 api 或者我能否以某种方式为 addFileAttachmentAsync 重用 SharePoint 令牌?

目前无法附加非公开文件。