Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (42 sloc) 2.067 kb
1930b8e @olalonde edited README
authored
1 Node.js module for interfacing with [Yelp](http://www.yelp.com)'s API v2.0
2
3 # Install #
4
5 npm install yelp
6
7 # Usage #
8
9 // Request API access: http://www.yelp.com/developers/getting_started/api_access
10
11 var yelp = require("yelp").createClient({
12 consumer_key: "consumer-key",
13 consumer_secret: "consumer-secret",
14 token: "token",
15 token_secret: "token-secret"
16 });
17
95a9064 @olalonde published to npm
authored
18 // See http://www.yelp.com/developers/documentation/v2/search_api
1930b8e @olalonde edited README
authored
19 yelp.search({term: "food", location: "Montreal"}, function(error, data) {
20 console.log(error);
21 console.log(data);
22 });
23
95a9064 @olalonde published to npm
authored
24 // See http://www.yelp.com/developers/documentation/v2/business
1930b8e @olalonde edited README
authored
25 yelp.business("yelp-san-francisco", function(error, data) {
26 console.log(error);
27 console.log(data);
28 });
95a9064 @olalonde published to npm
authored
29
30 # References #
31
32 - [Search API](http://www.yelp.com/developers/documentation/v2/search_api)
33 - [Business API](http://www.yelp.com/developers/documentation/v2/business)
aa8c067 @olalonde added license
authored
34
35 # License #
36
37 Copyright (c) 2012 Olivier Lalonde <olalonde@gmail.com>
38
39 Permission is hereby granted, free of charge, to any person obtaining a
40 copy of this software and associated documentation files (the
41 "Software"), to deal in the Software without restriction, including
42 without limitation the rights to use, copy, modify, merge, publish,
43 distribute, sublicense, and/or sell copies of the Software, and to
44 permit persons to whom the Software is furnished to do so, subject to
45 the following conditions:
46
47 The above copyright notice and this permission notice shall be included
48 in all copies or substantial portions of the Software.
49
50 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
51 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
52 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
53 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
54 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
55 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
56 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.