foursquare-venues

0.0.3 • Public • Published

foursquare-venues Build Status

This a simple nodejs implementation of the Foursquare Venues API with userless access (no OAuth token requried). It will make the API call and return the parsed json result.

Install

Just run as usual: npm install foursquare-venues

Test

Test suites are built with Mocha and chai.js. To run the suite execute: npm test This will check for code quality with jshint and run through the entire test suite.

Exemple

var Foursquare = require('foursquareVenues');
 
var foursquare = new Foursquare('CLEINT_ID', 'SECRET_ID');
 
foursquare.getCategories(function(error, response) {
  if (error) { return console.error(error) }
  console.log(response);
});
 
foursquare.getVenue('SOME_VENUE_ID', function(error, response) {
  if (error) { return console.error(error) }
  console.log(response);
});
 
foursquare.searchVenues({ near: 'New York' }, function(error, response) {
  if (error) { return console.error(error) }
  console.log(response);
});
 
foursquare.exploreVenues({ near: 'New York' }, function(error, response) {
  if (error) { return console.error(error) }
  console.log(response);
});

Note

Please report any bug, issue, ... on the issue list

Package Sidebar

Install

npm i foursquare-venues

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • oliviercuyp