7.21.0 • Published 7 months ago

@kelvininc/node-client-sdk v7.21.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
7 months ago

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.

7.18.0

10 months ago

7.21.0

7 months ago

7.13.2

1 year ago

7.12.0

2 years ago

7.11.0

2 years ago

7.9.1

2 years ago

7.8.0

2 years ago

7.8.1

2 years ago

7.5.0

2 years ago

7.3.0

2 years ago

6.1.0

2 years ago

7.0.0

2 years ago

5.9.0

2 years ago

7.1.0

2 years ago

5.5.0

2 years ago

5.8.0

2 years ago

5.4.0

3 years ago

5.3.0

3 years ago

5.1.0

3 years ago

5.0.0

3 years ago

3.2.1-alpha.3

3 years ago

3.2.1-alpha.2

3 years ago

3.2.1-alpha.1

3 years ago

3.2.1-alpha.0

3 years ago