Recently I was asked by my job authority to study and research on address book api of Gmail, Yahoo and Windows Live(Hotmail). This study is for friend inviter script of our social networking site hottDhaka.com. It a very good news that all of these email providers has released some sort of web services to access their address book. So now any user using any of the above mentioned email services can access their address book programatically and retrieve, add, edit and synchronize their contacts from a third party application.
I have studied all these api’s and found that, all the providers tried to keep their service as simple as possible. And social networking has a great impact on todays web trend. Otherwise I don’t think that the trio would give these type of functionality. This will greatly help the social networking sites to let their users access their address book directly from their sites and search and invite friends to their sites. While studying these api’s, I found one bottleneck which is not so important and I think developers can overlook this problem. The problem is, any user trying to access their address book from any third party web application, s/he has to authenticate from their respective service providers website. They don’t provide any mechanism for third party sites to authenticate the users off the providers sites. For example, if any Gmail users try to access his email address book from any third party web application, then he will be redirected to Gmail login page, s/he will authenticate him/herself there by providing his username and password, then Gmail send him back to the original site with his address book information. This is for security reason and I think this is ok. At least the developers don’t need to develop the security and login things by themselves as the service providers are take the responsibility to doing this. This also ensure the highest level of security.
But, as usual, Windows Live has another bottleneck I found, at least in my case. For security reason, the use the hash function mhash() for which I have to install the php mhash module. This is very rare module installed in local web hostings. And I still can’t check windows service for mhash() function. So I am looking for a hosting who can give me the mhash support. may be then I can use the api for PHP. Otherwise I have to try at .NET.
And I also tried the Yahoo Addressbook API. At very first sight, I thought Yahoo’s API is the easiest to build and test. But in fact, still I am getting a service unavailable error. And the interesting thing is that, I was trying their web services with a test code downloaded from their web site
Though, at first sight, it was seems that, Google’s api is very tough to try. And again interesting matter is that, I first success with Google’s API. I tried and played with their Javascript addressbook api. Its very easy. Google also provides a full working example. I just downloaded it and make some changes need for me. If you like to see, you can see it here.


