![]() ![]() ![]() Navigate to from another browser, select a different user to login and you can experience the integrated chat in action. In this tutorial we are using the chat only view SDK ( ), the same logic and flow can be used with other views of Chat SDK ( ). Using the access token you will initialize the user in your application with the following code snippet:Ĭonsole.log("Chat started binder ID: " + event.binder_id) Ĭonsole.log(ssage + " " + event.binder_id) Ĭonsole.log("Chat error code: " + event.error_code + " error message: " + event.error_message) Refer to the call "get_access_token($uid)" in "" for code snippet. In this step you will first authenticate the user and get the access token: Upon successful login of the user, you want to show the user's contact list but before showing the contacts you need to initialize the logged in user. You will need to implement the login and authentication in your app, in this tutorial you are simulating the login process. You will have the option to select one of the users (created in the previous step) and click "Login". Navigate your browser to (replace with the actual domain and path of your webserver where you installed the package). We recommend in your implementation to setup the user in Moxtra when they successfully sign up into your application. A basic program for onboarding clients and sharing files. So please setup the user in Moxtra before you add them to any chat. Matching colors and inserting your logo makes it clear to clients that the portal is managed. Note: Before an user is trying to chat with an other user, they should exist in Moxtra. You should see the response on successful creation of this test user data in the web page.įor API documentation on creating users in Moxtra please visit To setup these test user data into Moxtra, please run the script once by visiting (replace with the actual domain and path of your webserver where you installed the package).Įxecuting this script will call the Moxtra API to create the user. Each record in this CSV file represent an user and each record contains an unique identifer for the user in your app, first name and last name. In this step you will be creating few users from "user_data.csv" (sample user database file for this application). Open file and update the values and with the actual values of your sandbox app in Moxtra. Before proceeding further, ensure you have registered your app with Moxtra. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |