yelp-fusion-v3

0.0.8 • Public • Published

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 => ...)

Readme

Keywords

Package Sidebar

Install

npm i yelp-fusion-v3

Weekly Downloads

1

Version

0.0.8

License

ISC

Last publish

Collaborators

  • pbriones