switchbot-api
v1.3.0
Published
Node.js library to communicate with official SwitchBot API
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-apiOnce 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.
