Created
April 28, 2014 15:40
-
-
Save TJkrusinski/11375796 to your computer and use it in GitHub Desktop.
Foursquare example
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
'use strict'; | |
var key = 'your client key'; | |
var secret = 'your secret key'; | |
var fs = require('node-foursquare-venues')(key, secret); | |
function getHours(venue, callback) { | |
fs.venues.venue(venue, function(err, data){ | |
if (err) return callback(err, null); | |
callback(null, data.response.venue.hours); | |
}); | |
}; | |
getHours('40a55d80f964a52020f31ee3', function(err, hours){ | |
console.log(hours); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment