baby-connect

0.0.4 • Public • Published

Baby Connect API

A library for interacting with Baby Connect.

Usage

const {BabyConnect} = require('baby-connect');
const bc = new BabyConnect(
  'you@example.com', 'hunter2', 'some-unique-device-id'
);
bc.getUser()
.then(user => user.kidByName('Joe'))
.then(kid => kid.startSleeping(new Date()))
.then(() => console.log('saved!'));

Supported Actions

  • kid.startSleeping()
  • kid.stopSleeping()
  • kid.dirtyDiaper()
  • kid.wetDiaper()
  • kid.dirtyAndWetDiaper()
  • kid.dryDiaper()
  • kid.saveStatus(Kid.Category.OTHER, 'Message here'): other events haven't been filled out yet, but can be accessed via the constants on Kid.Category.

Readme

Keywords

none

Package Sidebar

Install

npm i baby-connect

Weekly Downloads

3

Version

0.0.4

License

BSD-3-Clause

Last publish

Collaborators

  • mroch