Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

tree: a50176446b

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

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

Install

npm install yelp

Usage

// Request API access: http://www.yelp.com/developers/getting_started/api_access

var yelp = require("yelp").createClient({
  consumer_key: "consumer-key", 
  consumer_secret: "consumer-secret",
  token: "token",
  token_secret: "token-secret"
});

// See http://www.yelp.com/developers/documentation/v2/search_api
yelp.search({term: "food", location: "Montreal"}, function(error, data) {
  console.log(error);
  console.log(data);
});

// See http://www.yelp.com/developers/documentation/v2/business
yelp.business("yelp-san-francisco", function(error, data) {
  console.log(error);
  console.log(data);
});

References

Something went wrong with that request. Please try again.