forked from kmiyashiro/node-foursquare
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of v0.2.0 overhaul; more coming.
- Loading branch information
1 parent
d5c6e7b
commit 15add15
Showing
30 changed files
with
2,036 additions
and
1,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,58 @@ | ||
|
||
var winston = require('winston'); | ||
|
||
module.exports = { | ||
"foursquare" : { | ||
"accessTokenUrl" : "https://foursquare.com/oauth2/access_token", | ||
"authenticateUrl" : "https://foursquare.com/oauth2/authenticate", | ||
"apiUrl" : "https://api.foursquare.com/v2" | ||
'foursquare' : { | ||
'accessTokenUrl' : 'https://foursquare.com/oauth2/access_token', | ||
'authenticateUrl' : 'https://foursquare.com/oauth2/authenticate', | ||
'apiUrl' : 'https://api.foursquare.com/v2' | ||
/* | ||
This field will indicate which version of the Foursquare API you wish to call. If not specified or set to "LATEST", | ||
This field will indicate which version of the Foursquare API you wish to call. If not specified or set to 'LATEST', | ||
it will use the latest version by setting the version number to today's date. | ||
*/ | ||
//"version" : "LATEST", | ||
//'version' : 'LATEST', | ||
/* | ||
This field determines how this library handles endpoints that return results along with an error, (e.g. deprecations). | ||
- If set to "WARN" (default), log4js will write a warning to the log, (NOTE: You must raise the | ||
"node-foursquare.core" log4js level to WARN or lower in order to see these warnings. | ||
- If set to "ERROR", the library will behave as though it encountered an ERROR and not return results. | ||
- If set to 'WARN' (default), log4js will write a warning to the log, (NOTE: You must raise the | ||
'node-foursquare.core' log4js level to WARN or lower in order to see these warnings. | ||
- If set to 'ERROR', the library will behave as though it encountered an ERROR and not return results. | ||
*/ | ||
//"warnings" : "WARN" | ||
//'warnings' : 'WARN' | ||
}, | ||
"log4js" : { | ||
"levels" : { | ||
"node-foursquare" : "INFO", | ||
"node-foursquare.core" : "OFF", | ||
"node-foursquare.Users" : "OFF", | ||
"node-foursquare.Venues" : "OFF", | ||
"node-foursquare.Checkins" : "OFF", | ||
"node-foursquare.Tips" : "OFF", | ||
"node-foursquare.Lists" : "OFF", | ||
"node-foursquare.Photos" : "OFF", | ||
"node-foursquare.Settings" : "OFF", | ||
"node-foursquare.Specials" : "OFF", | ||
"node-foursquare.Updates" : "OFF", | ||
"node-foursquare.Events" : "OFF" | ||
'winston' : { | ||
'transports' : [ | ||
new (winston.transports.Console)( | ||
{ | ||
'level' : 'enter', | ||
'colorize' : true | ||
} | ||
) | ||
], | ||
'levels': { | ||
'detail': 0, | ||
'trace': 1, | ||
'debug': 2, | ||
'enter': 3, | ||
'info': 4, | ||
'warn': 5, | ||
'error': 6 | ||
}, | ||
'colors': { | ||
'detail': 'grey', | ||
'trace': 'white', | ||
'debug': 'blue', | ||
'enter': 'inverse', | ||
'info': 'green', | ||
'warn': 'yellow', | ||
'error': 'red' | ||
}, | ||
'loggers': { | ||
'default': { | ||
'console': { | ||
'level': 'none' | ||
} | ||
} | ||
} | ||
}, | ||
"secrets" : { } | ||
'secrets' : { } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.