且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 Microsoft Graph API 下载附件?

更新时间:2023-10-06 11:49:52

When using C#.NET:

await graphClient.Users["coyote@acme.com"].MailFolders.Inbox.Messages.Request()
                .Expand("attachments").GetAsync();

or

await graphClient.Me.MailFolders.Inbox.Messages.Request()
                .Expand("attachments").GetAsync();

Regards