tags:

views:

187

answers:

1

Hi at all,

I have read documentation about Windows Live API: http://msdn.microsoft.com/en-us/library/bb463989.aspx

But how can I retrieve contacts from hotmail with python ?

Is there any example ?

+3  A: 

Your program will first need to obtain "delegated authentication", for which the Python samples are here.

After that, the interface is REST-like: you only need to HTTP GET the appropriate URI (per the docs, that's '/LiveContacts/contacts' to retrieve all contacts. The REST Schema is documented here. You can make an HTTP GET request in Python with such standard library modules as urllib and urllib2, though the lower-level httplib module is also fine.

Alex Martelli