Permalink
Browse files

Updated to work with node.js version > 0.5

  • Loading branch information...
1 parent c35c65b commit a560e0231c8231725132f4452122a7d59eee624b Ken Stone committed Mar 21, 2012
Showing with 6 additions and 4 deletions.
  1. +3 −1 README.md
  2. +2 −2 example/test.js
  3. +1 −1 package.json
View
@@ -20,4 +20,6 @@ Enter your consumer key and secret in example/test.js
cd test
node test.js
-open http://localhost:8553
+open http://localhost:8553
+
+In addition, to get some sample information, replace the '-' in the sample API call with a specific fitbit user id.
View
@@ -1,8 +1,8 @@
var express = require('express'),
connect = require('connect'),
app = express.createServer(connect.bodyParser(),
- connect.cookieParser(),
- connect.session({secret: 'session'}));
+ connect.cookieParser('session'),
+ connect.session()
var fs = require('fs');
var fitbitClient = require('../')('yourConsumerKey', 'yourConsumerSecret');
View
@@ -8,5 +8,5 @@
"directories" : { "lib" : "./lib" },
"dependencies": { "oauth": ">= 0.8.2" },
"repository" : {"type": "git" , "url": "http://github.com/smurthas/fitbit-js.git" },
- "engines": { "node": ">=0.2.0 <0.5.0" }
+ "engines": { "node": ">=0.2.0 <0.7.0" }
}

0 comments on commit a560e02

Please sign in to comment.