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.
3.
4.
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() + ": " + 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.
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