thingsboard-api-client
v1.0.10
Published
This module centralize Thingsboard API, helps to integrate in your web client.
Downloads
23
Readme
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]