Skip to content

tellnes/withings-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

withings-request Version Badge

Dependency Status Tips

NPM

The Withings OAuth implementation is not perfect. This lib hides that.

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

Please see withings-stream for an even higher abstraction.

Usage

var options =
  { consumerKey: '...'
  , consumerSecret: '...'
  , token: '...'
  , tokenSecret: '...'
  , userid: '...'
  , timeout: 10000
  }
var withings = require('withings-request')(options)

withings('measure', 'getmeas', { startdate: 1222819200, enddate: 1223190167 }, function (err, body) {
  if (err) throw err
  console.log(body)
})

Install

$ npm install withings-request

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published