Socket
Socket
Sign inDemoInstall

node-yelp-api

Package Overview
Dependencies
51
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-yelp-api

Library for interfacing with Yelp's API v2.0


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

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

Test

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

Thanks:

Keywords

FAQs

Last updated on 01 Dec 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc