Node.js module for interacting with Yelp's API v2.0
Usage
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',
};
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: