Is there a way to get the Suggested Contacts through Outlook API?

天涯浪子 提交于 2019-12-24 11:37:31

问题


I'm currently developing an app that fetches my contacts in my Microsoft account. The problem is, unlike Google, when I send or receive an email to/from a new contact, it isn't copied into My Contacts, so I can't get it through https://outlook.office.com/api/v2.0/me/contacts.

However, when I wrote a new email, it appears as a suggestion, so I guess it is stored somewhere else.

The question is: is there a way to access to my suggested contacts through the API to get their emails? And how?

Thank you 😊


回答1:


This feature is only available in beta version for now, please see the following api:

https://outlook.office.com/api/beta/me/contacts?$select=EmailAddresses,GivenName,Surname,DisplayName

This api will return all the contacts that you have received an email from or sent an email to :)




回答2:


The closest thing to what you're looking for is the People API. As that page says:

The People API returns relevent person entities with each request. A person aggregates information from across mail, contacts and social networks. The results are ordered by their relevance, which is determined by the criteria specified in the request and ranked based on multiple communication, collaboration and business relationships.



来源:https://stackoverflow.com/questions/46690854/is-there-a-way-to-get-the-suggested-contacts-through-outlook-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!