thingsboard-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i thingsboard-api-client

Weekly Downloads

3

Version

1.0.10

License

ISC

Unpacked Size

50.8 kB

Total Files

41

Last publish

Collaborators

  • ttqteo