1.3.2 • Published 7 days ago

nixt-sdk v1.3.2

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
7 days ago

NiXT SDK

A javascript sdk for NiXT data platform. This can be used in node.

Table of Contents

Documentation

Install

  • Requires node.js >= 12.x

Install nixt-sdk with:

npm install nixt-sdk

Setup Client

Next, require the module and instantiate a nixt client by calling Nixt.init(client_id, secret_key) setup the client with basic auth credentials client_id and secret_key.

import Nixt from "nixt-sdk";
Nixt.init(client_id, secret_key)

In the case you need to connect to nixt test environment you can call testbed(boolean):

Nixt.testbed(process?.env?.TARGET?.toUpperCase() !== "PRODUCTION")

You can connect to NiXT with private connection via GCP VCP Peering* you can call privateLink(boolean)

Note: Required setup VCP Peering

Nixt.privateLink(true | false)

You can set Level of debug log by calling Nixt.debug(debug_level)

Nixt.debug(NixtDebug.ALL)
Debug LevelDescription
NixtDebug.NONENo log (default)
NixtDebug.HTTPOnly http log
NixtDebug.ERROROnly error log
NixtDebug.ALLAll logs

Methods

The following service methods are available to instantiated clients. The examples assume you have already initial a nixt client with valid credentials.

latest

Nixt.latest( deviceIds, params )

Request:

ParameterDescriptionSample value
deviceIdsArray of deviceIds"deviceId"
paramsArray of tag"ENETO","PACTO"

Response: Parameter | Description | Sample value :---------------- | :---------------- | :-------------- deviceIds | Array of deviceIds | "deviceId" params | Array of tag | "ENETO","PACTO"

1.3.2

7 days ago

1.3.1

7 days ago

1.3.0

7 days ago

1.2.6

2 months ago

1.2.3

2 months ago

1.2.2

3 months ago

1.2.0

3 months ago

1.2.1

3 months ago

1.1.3

3 months ago

1.1.2

4 months ago

1.1.0

4 months ago

1.0.27

5 months ago

1.0.26

5 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.19

11 months ago

1.0.22

9 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.18

1 year ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.0

2 years ago