GitXplorerGitXplorer
m

baby-connect

public
6 stars
3 forks
1 issues

Commits

List of commits on branch master.
Unverified
bc7cd310545ab3111bea02211466914ef28c8135

v0.0.4

mmroch committed 8 years ago
Unverified
4ff7ab3790e1820ff97d268a7cebf23aa82d73a3

v0.0.3

mmroch committed 8 years ago
Unverified
22cbed1f336f40f945616b38a5236ecd511c6b16

v0.0.2

mmroch committed 8 years ago
Unverified
02df9f8f51ce80926dc94c4e1addd1b1e8339e9b

initial commit

mmroch committed 8 years ago

README

The README file for this repository.

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.