node-yelp-api

1.1.0 • Public • Published

Node.js module for interacting with Yelp's API v2.0

Usage

// Request API access: http://www.yelp.com/developers/getting_started/api_access
var merge = require('merge');
var yelp = require('node-yelp-api');
 
var options = {
  consumer_key: 'consumer-key',
  consumer_secret: 'consumer-secret',
  token: 'token',
  token_secret: 'token-secret',
};
 
// See http://www.yelp.com/developers/documentation/v2/search_api
var parameters = {
  term: 'food',
  location: 'Montreal',
};
yelp.search(merge(options, parameters), (data) => {
  console.log(data);
}, (err) => {
  console.error(err);
});

See ./tests for more usage examples.

References

Test

CONSUMER_KEY="" CONSUMER_SECRET="" TOKEN="" TOKEN_SECRET="" npm test

Thanks:

Readme

Keywords

Package Sidebar

Install

npm i node-yelp-api

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • lifuzu