🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign 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

1.0.2
latest
Source
npm
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
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