@kelvininc/node-client-sdk
TypeScript icon, indicating that this package has built-in type declarations

7.21.0 • Public • Published

Node Getting Started

Requirements

The kelvin SDK needs to support the following versions:

  • NodeJS: 8.0+

Installation

Install the Kelvin Node SDK library inside your project

npm install @kelvininc/node-client-sdk --save

Getting Started

Import Kelvin inside your project

const Kv = require('@kelvininc/node-client-sdk');

// or, if you are using es module
import { KelvinSDK } from '@kelvininc/node-client-sdk';

After that, it's important to initialize the SDK with the correct information to make available our API methods.

KelvinSDK.initialize({
	baseUrl: '<base-url-of-you-company>',
	authConfig: {
		clientId: '<client-id>',
		realm: '<realm>',
		url: '<authentication-url>'
	}
});

Usage

Follow some examples of services usage.

Login Process

import { AuthService } from '@kelvininc/node-client-sdk';

AuthService.login({
	username: '<username or email>',
	password: '<password>'
}).subscribe(({ accessToken, refreshToken }) => doSomething());

Get a list of ACPs

import { ACPService } from '@kelvininc/node-client-sdk';

ACPService.listACP({
	pageSize: 20
}).subscribe(acpList => doSomething(acpList));

Kelvin SDK Client API Documentation

You can find the full Client API reference here.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.21.08latest

Version History

VersionDownloads (Last 7 Days)Published
7.21.08
7.18.00
7.13.20
7.12.00
7.11.00
7.9.10
7.8.10
7.8.00
7.5.00
7.3.00
7.1.00
7.0.00
6.1.00
5.9.00
5.8.00
5.5.00
5.4.01
5.3.00
5.1.00
5.0.00
3.2.1-alpha.30
3.2.1-alpha.20
3.2.1-alpha.10
3.2.1-alpha.00

Package Sidebar

Install

npm i @kelvininc/node-client-sdk

Weekly Downloads

9

Version

7.21.0

License

SEE LICENSE IN LICENSE

Unpacked Size

81.6 kB

Total Files

65

Last publish

Collaborators

  • ricardogoncalves89
  • kv.daniel.carvalho
  • paulo.vieira
  • joshbode_kelvin
  • miguel.pinto
  • engineering_kelvin