Jul
02
2009

Myspace email address book import in Ruby

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.

tags: , , , ,
posted in ruby by prateek

Follow comments via the RSS Feed | Leave a comment | Trackback URL

9 Comments to "Myspace email address book import in Ruby"

  1. Nirmal Natarajan wrote:

    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!

  2. james wrote:

    where do you paste the code?

  3. prateek wrote:

    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

  4. james wrote:

    where???

  5. prateek wrote:

    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.

  6. CL wrote:

    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.

  7. harsh wrote:

    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.

  8. prateek wrote:

    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

  9. Mike Mondragon wrote:

    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/

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by openark.org