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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.81latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.81
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i yelp-fusion-v3

Weekly Downloads

1

Version

0.0.8

License

ISC

Last publish

Collaborators

  • pbriones