Get Started with mesiboEstimated reading time: 3 minutes
- Create Users
- Sending Media & Files
- Profile Management
- Sync Messages
mesibo is a powerful real-time communication platform to quickly add robust real-time messaging, group chat, voice, and video calls, conferencing into your mobile and web applications.
In this short introduction tutorial, you will learn to use various mesibo APIs for messaging and calls for all the supported platforms. Once you complete these basic tutorials, you will be ready to create more complex apps, for example, messaging app (like Whatsapp) or multiparty Conferencing app (like Zoom).
You can download the source code of all the tutorials from our Github repo to quick-start your development! In addition to that, you can also download the source code of our apps like Open-Source Messenger, Open Source Conferencing to quick-start your development! You can download mesibo source code, rebrand or modify it in any way you like, or deploy it commercially with zero restrictions.
Let’s get started.
Create an Account
Before you get started, sign-up to get a free mesibo account. This is a one-time activity, and you can use this account to build unlimited apps. Click here to create your account.
mesibo makes it extremely simple to enable real-time communication like messaging and calls between your users, you only need to follow two steps:
Step-1: Create User Tokens
You need to create an authentication token for each of your users so that they can log in to the mesibo servers and use mesibo features like messaging, calls, conferencing, etc. We will learn more about creating user tokens, in the next section
This user token is also called the access token. Once you create this token, you need to pass it to your app so that it can initialize mesibo real-time APIs with this token to send and receive messages or to make calls, as described in the next section.
The best time to create this token is when a user logs in to your app using whatever login mechanism you are using. On successful login, create a mesibo access token and send it along with your other payloads. We have described this in detail in the Authentication section.
Step-2: Use Real-Time APIs to send messages and make calls
Your apps need to use the access token created in Step-1 to initialize mesibo Real-Time APIs (e.g., for Android, iOS, Web, C++, Python, etc) to use 1-to-1 messaging, group messaging, voice & video calls, conferencing, chatbot, etc.
mesibo Real-Time APIs have two components:
- Real-Time Functions
- Real-Time Callbacks
Your app needs to call these functions to perform various operations like initializing mesibo with the user token, sending messages, making calls, etc. For example,
- to set the access token, user
- to send a text message, use
- to send a file, use
- to read messages from the database, use
Since your app can receive messages or calls anytime, you instruct mesibo to let your app know as soon as it happens. You can do it by passing a Callback object to mesibo (using the
addListener function). When a particular event occurs, mesibo will invoke an appropriate callback to let your app know about the event. For example,
- when a message is received,
Mesibo_OnMessagewill be called
- when a message is sent, delivered, or read
Mesibo_OnMessageStatuswill be called
- when a call is received
MesiboCall_OnIncomingwill be called
- when your app goes online or offline
Mesibo_OnConnectionStatuswill be called
- ..., etc.
Here, we have provided a brief overview of mesibo APIs and we will quickly learn more about using these APIs in the next sections. For a more detailed explanation of how mesibo works, see Basic Concepts of mesibo
Next up in this tutorial series, we will learn how to create user tokens. Later, we will build your first mesibo app using messaging and call API.communication platform, chat api, chat sdk, concepts, how chat api works, get started, setup, orientation, containers, messaging, group chat, audio call, video call, chat app, chat app ui