1.0.10 • Published 2 years ago

thingsboard-api-client v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

thingsboard-api-client

Overview

This module centralize Thingsboard API, helps to integrate in your web client.

Contents

Installation

This is a Node.js module available through the npm.

npm i thingsboard-api-client@latest

Example

import { ThingsboardApiClient } from "thingsboard-api-client";

const client = new ThingsboardApiClient();

async function login() {
  const resp = (await client.loginEndpoint().login({
    username: "username",
    password: "password",
  })) as any;
}

login();

Test locally

Step 1 In new package, build and package the project into .tgz

npm run build && npm pack

Step 2 In consumer project, make sure delete node_modules and package-lock.json \ Add to package.json

{
  "dependencies": {
    "thingsboard-api-client": "file:../thingsboard-api-client/thingsboard-api-client-1.x.x.tgz"
  }
}

Re-install all dependencies

npm i

Changelog

Check the GitHub Release Page

License

MIT License

Copyright

© 2023, (@ttqteo)https://github.com/ttqteo

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.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago