Chatbot using web API's
I am working on integrating a chatbot using the web API's. So here on the load of the web-page, I am authenticating a login request so that messages can be exchanged between the user and the bot.
Is there anyway users can contact Rainbow through web interface without a login.
Thanks in advance for the help.
-
Hi Parthi,
No, it's not possible to converse with Rainbow user without a login. Nevertheless, you may use a temporary guest user to accomplish you task. For security reason this user have to be created and login (with API, without XMPP) at server side level (backend).
Once you're temporary user is connected, transmit the guest JWT token to you front end in order to call the signinOnRainbowOfficialWithToken method ( https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/connection#module_Connection.signinOnRainbowOfficialWithToken ).
You are now able to communicate with Rainbow visible users on Rainbow.
Regards
Vincent
-
"you may use a temporary guest user to accomplish you task. For security reason this user have to be created and login (with API, without XMPP) at server side level (backend)."
Are you talking about the "/api/rainbow/admin/v1.0/users" api? it doesn't return any token, just the created user (with guest role) data.Thanks.
-
Hi kara desu,
please simply use the email and it's associated password return during guest user creation in order to login and retrieve the user token, please have a look on hub documentation for more details.
Thank you
Regards
Por favor, entrar para comentar.
Comentários
4 comentários