New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-yelp-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-yelp-api

Library for interfacing with Yelp's API v2.0

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
7
-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js module for interacting with Yelp's API v2.0

Install

npm install --save node-yelp

Usage

// Request API access: http://www.yelp.com/developers/getting_started/api_access
var merge = require('merge');
var yelp = require('node-yelp-api');

var options = {
  consumer_key: 'consumer-key',
  consumer_secret: 'consumer-secret',
  token: 'token',
  token_secret: 'token-secret',
});

// See http://www.yelp.com/developers/documentation/v2/search_api
var parameters = {
  term: 'food',
  location: 'Montreal',
};
yelp.search(merge(options, parameters), (data) => {
  console.log(data);
}, (err) => {
  console.error(err);
});

See ./tests for more usage examples.

References

  • Search API

Test

CONSUMER_KEY="" CONSUMER_SECRET="" TOKEN="" TOKEN_SECRET="" npm test

Thanks:

Keywords

node

FAQs

Package last updated on 01 Dec 2015

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