Skip to content

Node.js library to communicate with official SwitchBot API

License

Notifications You must be signed in to change notification settings

aoephtua/switchbot-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Node.js library to communicate with official SwitchBot API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published