1.2.0 • Published 5 months ago

switchbot-api v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

1.2.0

5 months ago

1.1.0

5 months ago

1.0.0

5 months ago