Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple FitBit API Client in node

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

fitbit-js

Simple FitBit API client for express + connect.

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

Enter your consumer key and secret in example/test.js

cd test
node test.js

open http://localhost:8553

Something went wrong with that request. Please try again.