Email Contacts For Invitation
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Email Contacts For Invitation

on

  • 2,576 views

 

Statistics

Views

Total Views
2,576
Views on SlideShare
2,567
Embed Views
9

Actions

Likes
1
Downloads
11
Comments
0

3 Embeds 9

http://www.slideshare.net 6
http://www.linkedin.com 2
http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Email Contacts For Invitation Presentation 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