Fetch contacts from Hotmail |
[eluser]Sawariya[/eluser]
Hai Friends How to retrieve cotacts from hotmail? help me plzzzzzzzzzzzzzz Thanks
[eluser]wiredesignz[/eluser]
Sheesh, At least try to work something out for yourself, then ask
[eluser]frenzal[/eluser]
it's like a lolcat typed that message, "i can has cheezburger?" anyway, to not go completely offtopic, maybe have a look at how some of these did it: http://www.hotscripts.com/PHP/Scripts_an...index.html
[eluser]Pascal Kriete[/eluser]
You will get a lot more answers if you have done your homework. That means having at least some idea at how you want to go about doing this (google helps), and preferably some sample code. Also asking the question clearly and in the best English you can manage not only looks more professional, it also feels like a much more genuine request. I realise there are a lot of foreigners on this board (myself included), but while grammar mistakes and the occasional typo are totally acceptable, blatant misspellings are not. This board has a spell checker that works quite well. As for the original request, all sources I have found so far suggest that you will probably need to build a screen scraper. I couldn't find a public API.
[eluser]MrBaseball34[/eluser]
Having done some work with Hotmail before, although it was using Delphi and not PHP, I can say that it shouldn't be that difficult as Hotmail can be queried using XMLHTTPRequest because it uses WebDAV. I have some Delphi code to retrieve the Contacts but can't translate to PHP even though I know PHP quite well. If someone wants to help out on the translation, I'll be glad to demonstrate how to gather the contacts from Hotmail.
[eluser]wiredesignz[/eluser]
I use Delphi also, can you either PM me your Delphi code or post it in the Lounge forum. I'll try to port it to PHP.
[eluser]matt2012[/eluser]
Ive used the api at http://www.rapleaf.com/apidoc/v2/abook You will need to get yourself an api key. First page ask for email and password then post it to second page - call it contacts_list then in the corresponding controller Code: function contacts_list() Note this is a bit of a hack really you should use XML-RPC class but my initial attempt failed and this worked if someone does get this working with XML-RPC I would love to see it (maybe post it here).
[eluser]MrBaseball34[/eluser]
[quote author="wiredesignz" date="1203568755"]I use Delphi also, can you either PM me your Delphi code or post it in the Lounge forum. I'll try to port it to PHP. [/quote] While testing the code today, I have found that it no longer works because something has changed. It seems that, even though you set the UserAgent in your initial XMLHTTPRequest, the redirect by services.msn.com modifies it and you get an 801: Invalid UserAgent error. In capturing the Address book Synch HTTP traffic using OE and Windows Address Book, I find that the same UA is being sent al the way through the transaction. I can provide it but am not sure if even converting it to PHP will work. I will post it in this thread tomorrow. BTW, I have found a couple of PHP WebDAV classes and am looking at one right now to help with the conversion. Any class MUST support PROPFIND to get the AB data.
[eluser]MrBaseball34[/eluser]
Code: oXMLHTTP and oXMLDoc are defined as:
[eluser]MrBaseball34[/eluser]
Code: Example of abdata returned from Hotmail: |
Welcome Guest, Not a member yet? Register Sign In |