switchbot-api

1.2.0 • Public • Published

switchbot-api

npm npm License

Node.js library to communicate with official SwitchBot API. It provides elementary functionalities to control devices.

Installing

Using npm:

$ npm install switchbot-api

Once the package is installed, you can import the classes:

import SwitchBotApi, { SwitchBotBlindTilt } from 'switchbot-api';

Usage

const switchBotApi = new SwitchBotApi(token, secret);

const devices = await switchBotApi.getDevices();

See examples to get an insight.

Devices

License

This project is licensed under MIT.

Package Sidebar

Install

npm i switchbot-api

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

16.4 kB

Total Files

13

Last publish

Collaborators

  • aoephtua