npm i --save @identixone/api
yarn add @identixone/api
// ES2015 module import:
import { createIDXRestApi, createIDXWsApi } from "@identixone/api";
// CommonJS module require:
const { createIDXRestApi, createIDXWsApi } = require("@identixone/api");
// REST
const IDXRestApi = createIDXRestApi({
version: 1,
token: "YOUR_IDENTIXONE_TOKEN",
});
// WebSocket
const IDXWsApi = createIDXWsApi({
version: 1,
token: "YOUR_IDENTIXONE_TOKEN",
});
IDXWsApi.connect();