繁体   English   中英

How to get all contacts (sender, to, cc, etc) from a specific email using Outlook REST API with JavaScript?

[英]How to get all contacts (sender, to, cc, etc) from a specific email using Outlook REST API with JavaScript?

I need to get all the contacts involved in a specific email (sender, to, cc, etc) then access to their job title, company, primary and mobile phone numbers using Outlook Rest API 2.0 with JavaScript.

我得到了令牌和所有东西,到目前为止,我已经成功地使用它获得了所有联系人:

https://outlook.office.com/api/v2.0/me/contacts

但是我不想要整个邮箱中的所有联系人,我只想要来自特定 email 的联系人并获取上述数据。

任何关于如何实现这一目标的想法都将不胜感激!

提前谢谢各位!!

查看以下链接。

https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations#get-messages

来自 API 的响应有发件人 object,它有 Sender、From、ToRecipients、CcRecipients、BccRecipients 等。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM