0.0.2 • Published 10 years ago

citygrid v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
10 years ago

node-citygrid

A Node.js wrapper for the CityGrid API: http://docs.citygridmedia.com/display/citygridv2. The following APIs are implemented:

  • Places API
  • Offers API
  • Reviews API

Installation

Install with the node package manager npm:

$ npm install citygrid

Examples

Places Search

var CityGrid = require('citygrid');

var citygrid = new CityGrid('PUBLISHER CODE FROM developer.citygridmedia.com');
citygrid.placesSearch({ what: 'coffee', where: 'Brooklyn, NY' }, function (err, data) {
  console.log('data:', data);
});

TODO

  • More examples
  • Tests
  • Pagination
  • Remove dependency on request?