Getting started
Install blip-iframe in your project:
Usage
You can use blip-iframe with any framework or even vanilla JavaScript.
In this section, we'll show how to get started using React, but the same principles
apply to any other tool or framework.
Usage with Iframe Message Proxy (default)
If you're using blip-iframe inside Blip (ex.: Blip Extensions),
using Iframe Message Proxy is the recommended way to go. Luckily, this is
also the default you can use the API commands and actions without any additional configuration,
as such:
Under the hood, blip-iframe will send the 'getApplication' action
using the Iframe Message Proxy, and properly type the response.
All set! Now you can use the blip-iframe API to make calls inside your application.
This method only works if your web app is inside Blip
Using
blip-iframewithout setting up authentication only works in web applications rendered as an iframe inside Blip, because the authentication is done automatically by the platform.If you want to make the same calls in a standalone app, follow the steps outlined below.
Usage with the REST API
To use blip-iframe in a standalone application, you need to use the REST API.
In order to do that, you need to create a sender function. This function will
take the commands parameters and send them using whatever method you like, in
this case, the REST API.
This function should be passed as the second parameters of any blip-iframe
helper function. See the example below.
Sender function using fetch and the REST API
Usage with using the Blip SDK
Coming soon...