Unofficial ŌURA cloud API client for node.js
npm install oura
var oura = require('oura')
// assume you have already gotten an OAuth2 access token
var accessToken = 'YOUR_ACCESS_TOKEN'
var client = new oura.Client(accessToken)
client.personalInfo().then(function (user) {
console.log(JSON.stringify(user, null, 1))
}).catch(function(error){
console.error(error)
})
Checkout the rest of the samples