4sq
A node.js wrapper for the Foursquare API.
Installation
$ npm install 4sq
Examples
var Foursquare = ; var fsq = token: 'OAuth2 access_token'; fsq;
Foursquare = require '4sq' fsq = token: 'OAuth2 access_token' fsqcheckins 'self'limit: 5 throw error if error consolelog data
How to retrieve foursquare OAuth2 access_token
Grab latest source code and install all dev dependencies
$ npm link
Change 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.coffee
API
user(user_id[, params], callback)
checkins(user_id[, params], callback)
badges(user_id[, params], callback)
By default user_id
set to self
.
Author
License
The MIT License, see the included license.md
file.