Getting Started
In this tutorial, we will be using bus
service which is the entry point to all the interactions that could have with Aircall Ecosystem.
What is bus?β
Bus is an headless, event-based system that allows you to seamlessly use most of the features exposed by Aircall.
It exposes a variety of modules each of which handles a very specific piece of the Aircall Ecosystem (e.g Authentication, Dialing, Agent Availability, etc ...).
You will learnβ
- How to start using bus layer π
- How to authenticate using Aircall Authentication System π
- How to start making and receiving calls π€―
We will useβ
This tutorial assumes that you have basic knowledge of React. That being said, you are free to use whatever library or framework that suits your needs, because at the end, bus π is framework agnostic as it runs inside of an iframe.
Start using bus πβ
Bus is a headless app, deployed on https://bus.aircall.io/latest/, the only way to communicate with this app is by using .postMessage() API which enables cross-origin communication between your system and the bus layer.
You donβt need to install anything to play with Bus π. Try editing this sandbox!
You can edit it directly or open it in a new tab by pressing the βForkβ button in the upper right corner.
Throughout this tutorial will be using this sandbox as a playground to test our code.
Going back to the code, we are using an iframe to load the bus layer, and we are listening to the onLoad
event to know when the bus layer is ready to use, you notice the console log in the terminal.
Once the load method, we can then dispatch BUS.REGISTER event and wait for bus
response.