How to Import Contacts from Hotmail

为君一笑 提交于 2019-12-11 21:06:47

问题


I am trying to import contacts from Hotmail in Asp.Net Project but I am unable to find proper documentation that's working . is there any changes microsoft made . I have read somewhere that microsoft is not allowing to share this info.

I have used following two links but Link info redirects us to onedrive

http://gnillydev.blogspot.in/2007/10/live-msn-hotmail-contacts-importing-in.html


回答1:


Yes, a lot has changed in Microsoft when subject is contacts importing.

Client

Now MSN, Hotmail and WindowsLive are all under Outlook.com. I.e., you must import your contacts from Outlook.com in order to get your contacts from all the these clients (including Hotmail).

Importing Protocol

Microsoft used, until few years ago, a custom protocol very close to OAuth (v1), called DeLauth. But, thanks God, now they're more towards to the existing standards, and now we can import contacts using the standard OAuth v2.

It's called Live Connect and you can read more about it here.

If you need to learn about OAuth2, I like this tutorial.

How to Implement

As you're using asp.net, you'll need to use the Authorization code grant flow (in above tutorial called Authorization code flow).

Basically: after register (one time only) your web app with Microsoft (requesting to use the Contacts API), you'll need to display to the user a hyperlink. User will click and a consent popup will be displayed.

Probably you already faced this consent popup in modern apps/games or websites asking grants like "Foo wants to access your profile info", etc.

Once user granted access to the API you want to use, then you'll receive an access code (which is temporary). Now using HTTPRequest class, you'll use this code to request the access token.

Then now finally, with this access token, you can make the API calls. Using again the HTTPRequest class.

Easy Path

You can find more Live Connect questions here in SO, like this good one.

Additionally, you can use ready-to-use solutions, like CloudSponge.com (with the benefit of support other address book sources). Disclaimer: I work for CloudSponge.




回答2:


i'm not positive but you probably have to export from hotmail first, into a csv file (for ex), then work with that.



来源:https://stackoverflow.com/questions/29355295/how-to-import-contacts-from-hotmail

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