withings-stream

withings-stream

withings-stream

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.

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 
})
$ npm install withings-stream

MIT