@invopop/console-ui-sdk
v0.0.9
Published
Standalone simple JS script designed to be incorporated into modules for communication with the console.
Downloads
10
Readme
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:
<script>
const CONSOLE_SDK_URL =
"https://cdn.jsdelivr.net/npm/@invopop/[email protected]/index.js";
</script>Then import in the JS code with the functions you'd like to use:
const { start, fetchEnrollment } = await import(CONSOLE_SDK_URL);
await start();
let enrollment = await fetchEnrollment();
// .... use data