Skip to content

identixone/identixone-js

Repository files navigation

Identix API JS library

Codacy BadgeKnown Vulnerabilities

Installation

NPM

npm i --save @identixone/api

Yarn

yarn add @identixone/api

Usage

// 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();