0.0.1 • Published 4 years ago
appcues-loader v0.0.1
appcues-loader
Async loader for the Appcues JS API written in typescript with promises.
This package makes no changes to the functionality of the Appcues JS API, it merely provides an easy way to load it asynchronously and then execute calls against the API in a Typescript project.
Installation
$ npm install --save appcues-loaderUsage
import { Appcues, Loader } from 'appcues-loader';
const loader = new Loader(yourAccountId);
loader.load().then((appcues: Appcues) => {
appcues.page();
appcues.identify(userId, { user: 'properties' });
});The API only supports the push call, which is documented here.
0.0.1
4 years ago