Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a user's contacts email data from Windows Live?

I know there are similar questions, but bear with me...

I've hit similar problems to other questioners regarding only getting hashed versions of contact email addresses, and understand why.

The thing is, I've noticed that google+ appear to be able to get contact email addresses just fine using LiveConnect. Using fiddler, I notice that they seem to be requesting an authentication scope "wl.contacts_emails" which does not seem to be documented.

Some googling suggests "enhanced permissions" but there's no mention of this when setting up or editing a windows live connect app on their site.

How do I get this scope on my app?

like image 434
izb Avatar asked Feb 23 '12 16:02

izb


People also ask

How do I Export email addresses from Windows Live Mail?

From the top menu click Manage. From the options that show up, click Export contacts. Choose to export all contacts. You may also select a specific folder if desired.

Where are the Windows Live Mail contacts stored?

Like mail data, Windows Live Mail contacts files are a stored in a hidden system folder on your computer and are selected by default. Windows Live Mail contact data can be found in the following location: C:/Users/{USERNAME}/AppData/Local/Microsoft/Windows Live/Contacts/

Can you import contacts from Windows Live to Mail?

You add the same Microsoft Account in the Mail app as you used to sign in with in Windows Live Mail. Then it should all happen automatically.


1 Answers

It works for me in production using wl.contacts_emails IN CONJUNCTION WITH wl.emails. I did not test it with only wl.contacts_emails but linkedin uses both scopes.

After WL.init here is the full scope used:

WL.login({
    scope: ['wl.basic', 'wl.emails', 'wl.contacts_emails'],
}).then(function(response) {

It still isn't documented and Microsoft has explicitly stated that you cannot get the contact email addresses, so use with caution. However, the entire oauth system is the biggest joke of an api I have ever worked with, so I'm guessing it's just so cluster-effed that someone just forgot to write it down.

Edit: the full story is here, Microsoft has confirmed the existence of wl.contacts_emails, and claim they it only works with certain partners who have made agreements with them. However, they are lying to cover their tracks and it works for all clients. The whole thing is a mess.

TL;DR wl.contacts_emails works but they won't admit to it, so there's a chance at some point in the future they could rip it out from under you.

like image 64
Andy Ray Avatar answered Sep 22 '22 09:09

Andy Ray