JSPM

withings-stream

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q34936F
  • License MIT

withings-stream

Package Exports

  • withings-stream

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (withings-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

withings-stream Version Badge

Dependency Status devDependency Status Bitdeli Badge

NPM

Streams Withings Measures. (measure / getmeas)

Getting the token and token secret is outside the scope of this lib. You can use passport-withings to do that.

Usage

var options =
  { consumerKey: '...'
  , consumerSecret: '...'
  , token: '...'
  , tokenSecret: '...'
  , userid: '...'
  , startdate: 1222819200
  , enddate: 1223190167
  }
var WithingStream = require('withings-stream')

var stream = WithingsStream(options)

stream.on('data', function (measuregrp) {
  // Do something with measuregrp
})

Install

$ npm install withings-stream

License

MIT