yfv
yelp-fusion-v3
npm i yelp-fusion-v3
yfv

yelp-fusion-v3

yelp fusion api connector

by Phil B.

0.0.8 (see all)License:ISCTypeScript:Not FoundCategories:Vanilla JavaScript Yelp API
npm i yelp-fusion-v3
Readme

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

Downloads/wk

4

GitHub Stars

0

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.0.8
latest
5yrs ago
No tutorials found
Add a tutorial