Skip to content
Browse files

Merge pull request #6 from bloomtime/master

upgrade log4js to fix #5 (also some minor test help)
  • Loading branch information...
2 parents 8a22115 + 01feb27 commit ed9900eb062c7dbe877e1cbc6f48d6ddc7ac0965 @clintandrewhall committed
Showing with 30 additions and 9 deletions.
  1. +2 −1 .gitignore
  2. +15 −4 package.json
  3. +4 −4 readme.md
  4. +9 −0 test/config-sample.js
View
3 .gitignore
@@ -2,4 +2,5 @@ test/config.js
node_modules
nodemon-ignore
.monitor
-.idea
+.idea
+npm-debug.log
View
19 package.json
@@ -3,8 +3,16 @@
"description": "Fault-tolerant Foursquare API v2 wrapper for Node JS.",
"version": "0.1.4",
"main": "index.js",
- "keywords": [ "node-foursquare", "foursquare", "4sq" ],
- "tags": [ "node-foursquare", "foursquare", "4sq" ],
+ "keywords": [
+ "node-foursquare",
+ "foursquare",
+ "4sq"
+ ],
+ "tags": [
+ "node-foursquare",
+ "foursquare",
+ "4sq"
+ ],
"repository": {
"type": "git",
"url": "git://github.com/clintandrewhall/node-foursquare.git"
@@ -19,7 +27,10 @@
}
],
"dependencies": {
- "log4js": "0.3.x"
+ "log4js": "~0.4.1"
+ },
+ "devDependencies": {
+ "express": "~2.5.0"
},
"engines": {
"node": ">= 0.4.x"
@@ -33,4 +44,4 @@
"scripts": {
"test": "node test.js"
}
-}
+}
View
8 readme.md
@@ -131,10 +131,10 @@ Testing
To test, you need to create a config.js file in the /test directory as follows:
- exports.config = {
+ module.exports = {
"secrets" : {
- "clientId" : [YOUR_CLIENT_ID],
- "clientSecret" : [YOUR_CLIENT_SECRET],
+ "clientId" : "YOUR_CLIENT_ID",
+ "clientSecret" : "YOUR_CLIENT_SECRET",
"redirectUrl" : "http://localhost:3000/callback" // This should also be set in your OAuth profile.
}
};
@@ -168,4 +168,4 @@ Notes
This module is a read-only subset of the full Foursquare API, but further capability, (adding, posting, updating, etc),
is forthcoming. Bugs and Pull Requests are, of course, accepted! :-)
-This project is a refactoring and enhancement of: https://github.com/yikulju/Foursquare-on-node
+This project is a refactoring and enhancement of: https://github.com/yikulju/Foursquare-on-node
View
9 test/config-sample.js
@@ -0,0 +1,9 @@
+// sign up at https://foursquare.com/oauth/register
+// copy this file to config.js and edit the values below
+module.exports = {
+ "secrets" : {
+ "clientId" : "YOUR_ID",
+ "clientSecret" : "YOUR_SECRET",
+ "redirectUrl" : "http://localhost:3000/callback" // This should also be set in your OAuth profile.
+ }
+};

0 comments on commit ed9900e

Please sign in to comment.
Something went wrong with that request. Please try again.