Nostalgic Perogi Monogramming
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

node-up

1.0.0 • Public • Published

This package has been deprecated

Author message:

This library is deprecated, as Jawbone has made their official API public. An alternative package is node-jawbone-up, which supports v.1.1 of the official API.

node-up

A node.js API wrapper for the undocumented Jawbone UP API.

Based on Eric Blue's most-excellent work, found here: http://eric-blue.com/projects/up-api/

TravisCI Build Status

Usage

Setup

var Up = require('up');
 
var upClient = new Up({
  username: JAWBONE_USERNAME,
  password: JAWBONE_PASSWORD
});

Authenticating

The UP API requires that an auth token is passed with each request. To generate the token, call the auth method.

upClient.auth(function(err, res){
  var token = res.token;
  console.log(token);
});

It's a good idea to make the auth request first and store the resulting token in your app for subsequent requests.

Calling the Endpoints

The only required parameter for each endpoint is the token.

client.feedSummary({_token: token}, function(err, res) {
    console.log(res);
});

Some endpoints accept further parameters, which are documented before each method in /lib/Up.js, as well as in Eric's API docs.

Installation

npm install up

Run Tests

  $ npm test

Keywords

install

npm i node-up

Downloadsweekly downloads

2

version

1.0.0

license

none

repository

githubgithub

last publish

collaborators

  • avatar