reformatted/tweaked and added the examples from example.py in the yelpapi package
[yelp-api-cdsw] / yelp3-json.py
1 from yelpapi import YelpAPI
2 from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
3
4 yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
5
6 # Example business query. Look at
7 # http://www.yelp.com/developers/documentation/v2/business for more
8 # information.
9
10 business = yelp_api.business_query(id='amys-ice-creams-austin-3')
11 print(business)
12
13

Benjamin Mako Hill || Want to submit a patch?