jawal-js

0.0.4 • Public • Published

jawal-js

Instalation

Include the library in your HTML file:

<script src="https://cdn.yastack.app/v1.1.0/jawal-js.min.js"></script>

Usage

To initialize the library, you need to call the getJawal method with your API key:

const app = document.getElementById("app");
const jawal = await getJawal("JS_API_KEY", app);

The getJawal method returns a promise that resolves to a Jawal object.

The Jawal object has the following methods:

loadSessionByExternalId

jawal.loadSessionByExternalId("session_external_id");

this method fetches the session data from the API and loads the "Session details" view in the widget.

!!! note The session_external_id is the ID that you pass to the jawal.startSession method. if there's more than one session with the same external ID, the latest one will be loaded.

Readme

Keywords

none

Package Sidebar

Install

npm i jawal-js

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

2.13 kB

Total Files

2

Last publish

Collaborators

  • jawalapp