[英]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. 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.
I got the token and everything and so far I've been successful in getting all contacts using this:我得到了令牌和所有东西,到目前为止,我已经成功地使用它获得了所有联系人:
https://outlook.office.com/api/v2.0/me/contacts https://outlook.office.com/api/v2.0/me/contacts
But I don't want all contacts from the whole mailbox, I just want the contacts from a specific email and get the data described above.但是我不想要整个邮箱中的所有联系人,我只想要来自特定 email 的联系人并获取上述数据。
Any ideas on how to achieve this will be appreciated A LOT!!任何关于如何实现这一目标的想法都将不胜感激!
Thanks in advance guys!!提前谢谢各位!!
checkout the below link.查看以下链接。
https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations#get-messages https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations#get-messages
Response from the API has the sender object which has Sender, From, ToRecipients, CcRecipients, BccRecipients, etc.来自 API 的响应有发件人 object,它有 Sender、From、ToRecipients、CcRecipients、BccRecipients 等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.