Your SlideShare is downloading. ×
0
Email Contacts for Invitation Richard Huang E kohe www.ekohe.com Web Development & Graphic Design China Ruby on Rails Deve...
SNS websites <ul><li>Why they spread so fast?  </li></ul><ul><li>Email Invitation </li></ul>www.ekohe.com Web Development ...
Contactlist <ul><li>java api to retrieve contact list of email (hotmail, gmail, yahoo, sohu, sina, 163, 126, tom, yeah, 18...
Contactlist www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Serv...
Use as library try { ContactsImporter importer = ContactsImporterFactory.getHotmailContacts(username, password); List<Cont...
Use as service www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails S...
Contactlist-client www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rai...
Thank you Website: http://www.huangzhimin.com Github: http://github.com/flyerhzm www.ekohe.com Web Development & Graphic D...
Upcoming SlideShare
Loading in...5
×

Email Contacts For Invitation

1,798

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,798
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Email Contacts For Invitation"

  1. 1. Email Contacts for Invitation Richard Huang E kohe www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  2. 2. SNS websites <ul><li>Why they spread so fast? </li></ul><ul><li>Email Invitation </li></ul>www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  3. 3. Contactlist <ul><li>java api to retrieve contact list of email (hotmail, gmail, yahoo, sohu, sina, 163, 126, tom, yeah, 189 and 139) and im (msn)‏ </li></ul>www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  4. 4. Contactlist www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development <ul><li>Project home: http://code.google.com/p/contact-list </li></ul><ul><li>Source code: http://github.com/flyerhzm/contactlist </li></ul><ul><li>Web demo: http://contactlist.heroku.com </li></ul><ul><li>Ruby client: http://github.com/flyerhzm/contactlist-client </li></ul>
  5. 5. Use as library try { ContactsImporter importer = ContactsImporterFactory.getHotmailContacts(username, password); List<Contact> contacts = importer.getContacts(); for (Contact contact : contacts) { System.out.println(contact.getUsername() + &quot;: &quot; + contact.getEmail()); } } catch (ContactsException ex) { ex.printStackTrace(); } www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  6. 6. Use as service www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development Contactlist provides web api call url: http://contacts.huangzhimin.com parameters: account=xxx@gmail.com&password=xxxx&type=gmail Correct response {'contacts': [{'username': 'yyy', 'email': 'yyy@gmail.com'}, {'username': 'zzz', 'email': 'zzz@hotmail.com'}]} Wrong response {'error': 'hotmail protocol changed'}
  7. 7. Contactlist-client www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development <ul><li>It is a ruby client. </li></ul><ul><li>require 'contactlist-client' </li></ul><ul><li>contacts = ContactList::Client.fetch(account, password, type)‏ </li></ul><ul><li>contacts.each do |contact| </li></ul><ul><li>puts &quot;username: #{contact.username}, email: #{contact.email}&quot; </li></ul><ul><li>end </li></ul>
  8. 8. Thank you Website: http://www.huangzhimin.com Github: http://github.com/flyerhzm www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×