A node.js wrapper for the Foursquare API.
$ npm install 4sqvarFoursquare=require('4sq');varfsq=newFoursquare({token: 'OAuth2 access_token'});fsq.checkins('self',{limit: 5},function(error,data){if(error){thrownewError(error);}console.log(data);});Foursquare=require'4sq'fsq=newFoursquaretoken:'OAuth2 access_token'fsq.checkins'self', limit:5, (error, data) ->thrownewError error if error
console.log dataGrab latest source code and install all dev dependencies
$ npm linkChange your host, client id, client secret in examples/get-access-token.coffee and after that run examples/get-access-token.coffee
$ coffee examples/get-access-token.coffeeuser(user_id[, params], callback)checkins(user_id[, params], callback)badges(user_id[, params], callback)
By default user_id set to self.
The MIT License, see the included license.md file.
