Skip to content

Instantly share code, notes, and snippets.

@TJkrusinski
Created April 28, 2014 15:40
Show Gist options
  • Save TJkrusinski/11375796 to your computer and use it in GitHub Desktop.
Save TJkrusinski/11375796 to your computer and use it in GitHub Desktop.
Foursquare example
'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