Your SlideShare is downloading. ×
Email Contacts For Invitation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Email Contacts For Invitation

1,780

Published on

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

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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. SNS websites
    • Why they spread so fast?
    • Email Invitation
    www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  • 3. Contactlist
    • java api to retrieve contact list of email (hotmail, gmail, yahoo, sohu, sina, 163, 126, tom, yeah, 189 and 139) and im (msn)‏
    www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
  • 4. Contactlist www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
    • Project home: http://code.google.com/p/contact-list
    • Source code: http://github.com/flyerhzm/contactlist
    • Web demo: http://contactlist.heroku.com
    • Ruby client: http://github.com/flyerhzm/contactlist-client
  • 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. 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. Contactlist-client www.ekohe.com Web Development & Graphic Design China Ruby on Rails Development - Rails Consulting - Rails Services - Merb - Offshore Web Development
    • It is a ruby client.
    • require 'contactlist-client'
    • contacts = ContactList::Client.fetch(account, password, type)‏
    • contacts.each do |contact|
    • puts &quot;username: #{contact.username}, email: #{contact.email}&quot;
    • end
  • 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

×