1.0.0-alpha.3 • Published 9 months ago

@elimity/insights-client v1.0.0-alpha.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Elimity Insights NodeJS client

This NodeJS package provides a client for connector interactions with an Elimity Insights server.

Usage

Minimal example

The following snippet shows how to authenticate as a custom source and create a connector log at an Elimity Insights server. You can generate a source identifier and token by visiting the custom source's detail page in Elimity Insights and clicking the 'GENERATE CREDENTIALS' button, which can be found under the 'SETTINGS' tab.

import { logInfo } from "@elimity/insights-client";

const config = {
  baseUrl: "https://example.elimity.com/api",
  sourceId: 1,
  sourceToken: "my-token",
};
await logInfo(config, "Hello from NodeJS!");

Extended example

Refer to the example directory in this package's GitHub repository for a sample script that imports some users, roles and relationships between them.

Installation

$ npm i @elimity/insights-client

Compatibility

Client versionInsights version
1>=3.35
1.0.0-alpha.3

9 months ago

1.0.0-alpha.2

9 months ago

1.0.0-alpha.1

9 months ago

1.0.0-alpha.0

9 months ago