Sha256: 582077fc15d936305be13e080d8ef60c56a6a9c2ea2544794bef4bf8b728a709

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

h1. contactlist-client

The contactlist-client gem is a ruby client to "contactlist":http://github.com/flyerhzm/contactlist service which retrieves contact list of email(hotmail, gmail, yahoo, sohu, sina, 163, 126, tom, yeah, 189 and 139) and im(msn)

**********************************************************

h2. install

<pre><code>
gem sources -a http://gemcutter.org
gem install contactlist-client
</code></pre>

**********************************************************

h2. Usage

<pre><code>
require 'contactlist-client'
  
contacts = ContactList::Client.fetch(account, password, type)

contacts.each do |contact|
  puts "username: #{contact.username}, email: #{contact.email}"
end
</code></pre>

* <code>account</code>, string of your email or im account
* <code>password</code>, string of your password
* <code>type</code>, string of your email type of im, now support gmail, hotmail, yahoo, sohu, sina, tom, yeah, 163, 126, 189, 139 and msn

**********************************************************


Copyright (c) 2009 Richard Huang (flyerhzm@gmail.com). See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contactlist-client-0.1.2 README.textile
contactlist-client-0.1.1 README.textile