Blackbook gem is the easiest way to add address book import functionality in your webapp. It currently supports Gmail, Yahoo, Hotmail, AOL and CSV import. I recently patched the gem to add myspace address book import functionality and have checkedin the code on github. I also fixed the name import for gmail. You can find the patched blackbook gem with myspace import functionality here. Since myspace uses email address for login, its not possible to get the blackbook source (myspace) using the username. To import the myspace addressbook, you therefore need to do this
contacts = Blackbook::get 'myspace', :username=>'funkydude@coolemail.com', :password=>'myspace_password'
I have tested the code and its currently in use in Muziboo. If you run into any issues, let me know and I try to fix them. Once the code is stable enough, I will send a pull request to the maintainers of the project.
Nice find!
I stumbled upon this through Muziboo. Will keep track of its development through this blog.
I am just thinking of jumping into Ruby. But finding it very difficult to move away from PHP!
Link | July 17th, 2009 at 2:30 am
where do you paste the code?
Link | August 20th, 2009 at 8:06 pm
Nirmal,
Sorry for the late reply .. I have had very little time for blogging lately. I have never tried Php but ruby (and rails) is pure joy .. you should try it out sometime
Link | September 6th, 2009 at 10:59 am
where???
Link | September 22nd, 2009 at 7:33 am
Hi James,
Blackbook is a plugin that you need to install and for importing, you will have to create a controller. It depends on how your application is structured.
Link | September 22nd, 2009 at 10:20 am
Hi James,
Blackbook is a plugin that you need to install and for importing, you will have to create a controller. It depends on how your application is structured.
Link | October 5th, 2009 at 9:44 pm
i want to get all the email address in my addressbook from myspace.com
please let me know if any way or api for getting this details
thank you.
Link | October 6th, 2009 at 9:33 am
Hi Harsh,
You need to use the gem as I have mentioned in the post. If it does not work for you, please let me know and I will help you out. I am not aware of myspace exposing any contacts API as such
Link | October 8th, 2009 at 4:14 pm
Great article. As you know the authentication systems on these mail and address book systems can change and its important to keep an up to date blackbook gem. I believe the most current version of blackbook is being maintained by purzelrakete on github
http://github.com/purzelrakete/blackbook/
Link | October 14th, 2009 at 4:31 pm