yelp-fusion-v3
Promise-based yelp fusion package
Installation
npm i yelp-fusion-v3 --save
Usage
query parameter requires minimum required input by Yelp Fusion
Comment above function mentions extra requirements
Response is unmodified yelp response
const Yelp = require('yelp-fusion-v3');
let yelp = new Yelp({
client_id: <client_id>,
client_secret: <client_secret>
});
yelp.getToken()
.then(message => console.log(message))
.catch( e=> console.error(e))
yelp.getBusinesses(query)
.then(businesses => {...})
.catch(e => ...)
//requires query.id
yelp.getBusiness(query)
.then(business => {...})
.catch(e => ...)
//requires query.id
yelp.getReviews(query)
.then(reviews => {...})
.catch(e => ...)
yelp.getBusinessesByPhone(query)
.then(businesses => {...})
.catch(e => ...)
yelp.autocomplete(query)
.then(suggestions => {...})
.catch(e => ...)
yelp.getTransactions(query)
.then(transactions => {...})
.catch(e => ...)