sesame-client
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

sesame-client

NPM Node.js CI Test coverage JavaScript Style Guide

Node.js client for Sesame smart lock API

const sesame = require('sesame-client')
const myLock = new sesame.RestClient('API_TOKEN', 'DEVICE_ID')
 
async function toggle () {
  const currStatus = await myLock.getLockStatus()
  await myLock.controlLock(currStatus.locked ? 'unlock' : 'lock')
}

Installation

Run the following command in your project root.

npm install sesame-client

Usage

See API documentation.

Contribution

Contributions are welcome. Feel free to report an issue or submit a pull request.

License

This package is distributed under the MIT License. See LICENSE.md for details.

Reference

/sesame-client/

    Package Sidebar

    Install

    npm i sesame-client

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    20 kB

    Total Files

    10

    Last publish

    Collaborators

    • yudai-nkt