Foros de discusión

OpenInviter liferay integration

thumbnail
Tarun S. Kayasth, modificado hace 14 años.

OpenInviter liferay integration

Regular Member Mensajes: 162 Fecha de incorporación: 8/06/07 Mensajes recientes
Hi All,

Can any body provide me some reference for "OpenInviter and Liferay integration"?

Thanks,
Tarun Kayasth
thumbnail
Tarun S. Kayasth, modificado hace 14 años.

RE: OpenInviter liferay integration

Regular Member Mensajes: 162 Fecha de incorporación: 8/06/07 Mensajes recientes
Hello!!

Anybody worked on "OpenInviter and Liferay integration"?

-Tarun
thumbnail
Sandeep Nair, modificado hace 14 años.

RE: OpenInviter liferay integration

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Hi,

I would be interested in knowing this too. I had done once importing contacts with one of the google codes. In which you have to use their library to take email id and password and get contact list.

following is the snippet to import contact from one of the gmail accounts using their api

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());
}</contact>


The URL of their api is

http://code.google.com/p/contactlistimporter/

Note: They have told not to use the API any more. that's why i am interested to learn how its done via Openinviter.

Regards,
Sandeep
thumbnail
Mauro Mariuzzo, modificado hace 14 años.

RE: OpenInviter liferay integration

Regular Member Mensajes: 142 Fecha de incorporación: 23/07/07 Mensajes recientes
We have made OpenInviter integration.

You have to know that OpenInviter manage different type of source:
  • mail provider (every contacts is reachable by mail)
  • social network (every contancts is reachable via internal messaging system)


Open Inviter function is simple:
  • first step allow you to select the source (provider or social network) and insert your credential
  • than program use the right plugin to retrieve contacts
  • second step show founded contacts and allow you to select recipients
  • than program use the right plugin to send invite


Knowing this we have made some stuff that:
  • ask user to select source (provider or social network) and insert his credential
  • inside the portlet post action we use HttpClient to pass this infos to a running OpenInviter instance.
  • with "Jericho Html" tool we can parse the response to collect founded contacts
  • this list is exposed in a new jsp page to allow user to select recipients
  • inside a secondo portlet post action we use HttpClient to pass this infos to OpenInviter in the same way OpenInviter code do.


I need to talk with my manager to know if I can post code.

You can see an example that at "www.pjoon.com"
thumbnail
Sandeep Nair, modificado hace 14 años.

RE: OpenInviter liferay integration

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
If possible can you please post the code?