Socket
Socket
Sign inDemoInstall

switchbot-api

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    switchbot-api

Node.js library to communicate with official SwitchBot API


Version published
Weekly downloads
3
Maintainers
1
Install size
2.13 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 19 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc