fitbit-js

Simple FitBit API client

npm install fitbit-js
2 downloads in the last day
7 downloads in the last week
70 downloads in the last month

fitbit-js

Simple FitBit API client for express 3.

npm install fitbit-js

Usage

fitbit-js has two methods:

getAccessToken(req, res, callback) // Uses oAuth module to get the access_token
apiCall(http_method, path, params, callback) // Does a call to the FitBit API.

params must contain the token.

Test

Register an app with fitbit specifying a callback URL of http://localhost:8553.

npm install
cd test
node test.js [Consumer Key] [Consumer Secret]

open http://localhost:8553

npm loves you