# Invopop Console Applications SDK

Toolkit for web apps to be able to communicate with the Invopop Console UI.

## Usage

Define the SDK URL in your HTML code with a constant as follows, adjusting the version of the SDK as needed:

```html
<script>
  const CONSOLE_SDK_URL =
    "https://cdn.jsdelivr.net/npm/@invopop/console-ui-sdk@0.0.10/index.js";
</script>
```

Then import in the JS code with the functions you'd like to use:

```js
const { start, fetchEnrollment } = await import(CONSOLE_SDK_URL);
await start();

let enrollment = await fetchEnrollment();

// .... use data
```
