简体   繁体   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. 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.

相关问题 从Outlook Office REST API获取联系人计数-Javascript - Getting a Count of Contacts from Outlook Office REST API - Javascript 使用 appscript 从特定发件人处检索电子邮件 - Retrieving email from a specific sender using appscript 如何使用JavaScript和HTML从REST API中选择特定数据 - How to select specific data from a REST API using JavaScript and HTML 如何使用JS从Google Contacts API获取照片 - How to get a photo from Google Contacts API using JS 从 Outlook 加载项使用 Outlook REST API Beta - Using Outlook REST API Beta From an Outlook add-in 如何使用Javascript从iTunes API获得特定价值 - How to get specific value from iTunes API using Javascript 使用javascript获取gmail联系人Google Contacts API - get gmail contacts Google Contacts API with javascript 如何使用google-api-javascript-client或“Contacts API 3.0版”从gmail导入联系人? - How can i import contacts from gmail using google-api-javascript-client or “Contacts API version 3.0”? 如何查看Outlook加载项的Javascript API中电子邮件的“收件人/抄送”字段的更改? - How do I watch for changes to the To/CC fields for emails in Outlook Add-In's Javascript API? 使用 ActiveXObject 或 Office Javascript API 将电子邮件保存到 Outlook 文件夹? - Save email to outlook folder using ActiveXObject or Office Javascript API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM