🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

v3-yelp-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v3-yelp-api

Node Wrapper for Yelp Api V3

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

v3 Yelp Api

A simple npm wrapper for Yelp v3 Api which is compatible with React Native

Dependencies

axios qs

Install

npm

npm i v3-yelp-api -S

Usage

import YelpApi from 'v3-yelp-api';

const credentials = {
    appId:"App Id from Yelp Developer Console",
    app: "App Secret from Yelp Developer Console"
}

const yelp = New YelpApi(credentials)
let params = {
    query: 'food',
    location: '51.5007,0.1246',
    price: '2',
    limit: 10
}

yelp.search(params)
 .then(data => data)
 .catch(err => err)
let params = { phone: '+442073722882' }

yelp.phoneSearch(params)
 .then(data => data)
 .catch(err => err)

Business / Reviews

let bestRestaurantEver = 'tamada-london'

yelp.business(bestRestaurantEver)
 .then(data => data)
 .catch(err => err)

yelp.reviews(bestRestaurantEver)
 .then(data => data)
 .catch(err => err)
let params = { location: 'london' }
let transactionType = 'delivery'

yelp.transactionSearch(params)(transactionType)
 .then(data => data)
 .catch(err => err)

Keywords

yelp-api

FAQs

Package last updated on 19 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts