npm install node-yelp-fusion --save
var Yelp = require('node-yelp-fusion');
var yelp=new Yelp({ id:key , secret:secret });
yelp.search("term=Biryani&location=New York")
.then(function(result){
res.json(result);
});
yelp.phoneSearch('phone=+12125551212')
.then(function(result){
res.json(result);
});
yelp.transactionSearch("delivery","location=New York")
.then(function(result){
res.json(result);
});
yelp.business("biryani-cart-new-york")
.then(function(result){
res.json(result);
});
yelp.reviews("biryani-cart-new-york")
.then(function(result){
res.json(result);
});
yelp.autoComplete("text=biryani&locale=en_SG")
.then(function(result){
res.json(result);
});
https://www.yelp.com/developers/documentation/v3/get_started
Version | Tag | Published |
---|---|---|
1.0.4 | latest | 6yrs ago |