Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.03 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.03 KB

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