switchbot-api
v1.2.0
Published
Node.js library to communicate with official SwitchBot API
Downloads
10
Maintainers
Readme
switchbot-api
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.