|
Project Information
Members
Featured
Downloads
Links
|
Contact List Importer 1.3.1 Java Library : Hotmail, Gmail & YahooContact List Importer END OF LIVEIn summary: dont use this library anymore, there is a better way of importing contacts using the open API's of the different services. This software is deprecated as it uses html scraping in order to retrieve contacts. The API is itself an HTTP client and simply logs in to a service an gets the contacts. This method is prone to errors because the websites of the different contact-list providers change over time. The better solution is to use the (new) open apis of the different versions. The contactlistimporter must be completely rewritten in order to work with those open apis. I do not have time for this. Here is a (incomplete) list of pages with documentation for different open apis:
If you want more apis just google them using "serviceName contacts api". I strongly advice NOT to use this software anymore. EVERYTHING BELOW THIS LINE IS DEPRECATED
IntroductionImporting contacts from various services is not easy. The ContactListImporter provides an interface for retrieving contacts from various services. Working implementations of that interface are provided for the following services.
The implementation for hyves is broken due to a change in the hyves website. It will be fixed in the future. Please DonateIf you are using this project I have saved you either
So be kind a please donate. Any amount will do. I am a student so i can really use the money. Commercial SupportIf you use this product in a commercial settings and need support or bug fixes on can ask for commercial support. For more information on the cost please contact the owner of this project (for mail address see below). Sample CodeImporting contacts from these services very easy with the ContactListImporter library. The following code imports all contacts and prints them to System.out: import com.xdatasystem.contactsimporter.*;
// automatically guess the correct implementaion based on the email address
ContactListImporter importer=ContactListImporterFactory.guess("someuser@hotmail.com", "password");
List<Contact> contacts=importer.getContactList();
for(Contact c : contacts) {
System.out.println("name: "+c.getName()+", email: "+c.getEmail());
}Other ways to instantiate a ContactListImporter using the factory can be done as follows: // creates an hotmail contact importer
importer=ContactListImporterFactory.hotmail("someuser@hotmail.com", "password");
// creates an gmail contact importer
importer=ContactListImporterFactory.gmail("someuser@gmail.com", "password");DependenciesThis library has the following depenencies:
This library can be used to support a -invite-your-friends- function for your site. This library builds upon the knowledge gathered by the creator of the following ruby contactsimporter library: AuthorThis program was created by Tjerk Wolterink and donated to the open source community. Cristian Ventura added the Yahoo importer implementation. You are free to add more importers, or to fix bugs.. just give me a mail: tjerkw AT gmail.com (replace AT by the symbol, you know which symbol ;-) Thanks to Thomas Bernard for the port to the new Hotmail Version. Thanks to any other contributers & bug reports! |