JavaScript SDK
Our JavaScript SDK offers an API to programmatically interact with Appetize devices. This allows you to automate interactions with the device, verify app behavior, and more.
Last updated
Our JavaScript SDK offers an API to programmatically interact with Appetize devices. This allows you to automate interactions with the device, verify app behavior, and more.
Last updated
First, load the JavaScript SDK by adding the following snippet to the head
section of your page:
Add an iframe
with an :
This will return an Appetize client instance for the embed e.g.
You can start a session programmatically:
or wait for the user to click "Tap to Play":
Next we'll cover various ways you can configure the embed, such as the device or OS version.
The easiest way to get the client is by calling .
We also support getting the client with an initial - for scenarios where the initial embed link might not be known on launching of the page (no src
specified on the iframe
) by making use of .
This will return an Appetize client instance with the initial applied e.g.