JAVA API for a single IM
RespondidaHi all
We have a WebService in JAVA that manages an electronic protocol system, where it is called by an app writen in Delphi wherin the end user creates a new protocol (ticket) and when the state of this ticket changes I (my WS) must send a message to the end user (by Rainbow IM).In de ticket I have the user's e-mail on Rainbow...
Where can I download the JAVA API?
Do could you send us an example in JAVA?
How get an Application ID?
Do you have also a FULL REST API to me call direct from Delphi?
Thanks
-
Comentário oficial
Hi Roberto,
First global remark: Node.js SDK is for backend, like creating users/guests or Bubbles, Channels, Groups. But not to manage a specific user's contact list/roster. Frontend will have to use Web/Android/iOs SDKs ... or Rainbow official apps.
It may also be used (and it is used) to create BOTs to reply to messages.The API sendMessageToJid() is more specific for replying to a message you get (and then know the sender JID). Please have a look at the doc there: https://hub.openrainbow.com/#/documentation/doc/node/tutorials/Answering_chat_message (part "Sending a message to a recipient").
To search a Contact by it's email (if a Rainbow account with this email exists), you may use
https://hub.openrainbow.com/#/documentation/doc/node/api/contacts#Contacts+getContactByLoginEmail
And then, it's JID will be in the Contact given (if one exists).To manage an user's contact list (roster), you will have to first "invite" the contact OUTSIDE Node.js SDK, and he will have to accept the invitation. Please have a look at this doc:
https://hub.openrainbow.com/#/documentation/doc/node/tutorials/Managing_contacts and the part "Limitations".Best regards,
PascalAções de comentário -
Hello Roberto,
I am sorry, no JAVA SDK/APIs.
A Full REST is planned, but no date at the moment. Existing REST APIs are describred here:
https://hub.openrainbow.com/#/rest
But: you can't "IM" (chat, conversation, Bubbles) with them, for the moment IMs doesn't use REST.You could perhaps try to use the Node.js SDK by integrating it by JSDT with for example if you are working with Eclipse this plugin http://www.eclipse.org/webtools/jsdt/
About the Application ID: please refer to this howto https://hub.openrainbow.com/#/documentation/doc/hub/developer-sandboxed-platform
Regards,
Pascal -
Our teams and some partners are using Node.js SDK for backend.
Please have a look there:
https://hub.openrainbow.com/#/node with examples: -
Hi Rosales
I am trying to dev a WS using NodeJS SDK
I authenticated me at sandbox successfully…
Now I need to send a message to someone… I saw docs a method .sendMessageToJid()
But I still don't understand how can I get the USER ID ( jid ) if I have only the e-mail of destinatary?
Note, the destinatary user is not in my contact list… I have only its email address like someone@smartbit.inf.br … And I know that this has a rainbow account…// Send a message in English to a user with a markdown format and a subject
messageSent = rainbowSDK.im.sendMessageToJid('A message', user.jid, "en", {"type": "text/markdown", "message": "**A message**"}, "My Title");
How to search the JID?
thanks
Por favor, entrar para comentar.
Comentários
5 comentários