--- /dev/null
+*.pyc
+*~
\ No newline at end of file
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example search by location text and term. Take a look at
+# http://www.yelp.com/developers/documentation/v2/search_api for
+# the various options available.
+
+# print the 5 best rated ice cream places in Austin, TX
+
+response = yelp_api.search_query(term='ice cream', location='austin, tx', sort=2, limit=5)
+
+print(response)
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example search by location text and term. Take a look at
+# http://www.yelp.com/developers/documentation/v2/search_api for
+# the various options available.
+
+print('***** 5 best rated ice cream places in Austin, TX *****')
+
+response = yelp_api.search_query(term='ice cream', location='austin, tx', sort=2, limit=5)
+
+print('region center (lat,long): %s,%s\n' % (response['region']['center']['latitude'], response['region']['center']['longitude']))
+
+for business in response['businesses']:
+ print('%s\n\tYelp ID: %s\n\trating: %g (%d reviews)\n\taddress: %s' % (business['name'], business['id'], business['rating'], business['review_count'], ', '.join(business['location']['display_address'])))
+
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example search by bounding box and category. See
+# http://www.yelp.com/developers/documentation/v2/all_category_list
+# for an official list of Yelp categories. The bounding box definition
+# comes from
+# http://isithackday.com/geoplanet-explorer/index.php?woeid=12587707.
+
+# 5 bike rentals in San Francisco county
+
+response = yelp_api.search_query(category_filter='bikerentals', bounds='37.678799,-123.125740|37.832371,-122.356979', limit=5)
+
+print(response)
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example search by bounding box and category. See
+# http://www.yelp.com/developers/documentation/v2/all_category_list
+# for an official list of Yelp categories. The bounding box definition
+# comes from
+# http://isithackday.com/geoplanet-explorer/index.php?woeid=12587707.
+
+print('***** 5 bike rentals in San Francisco county *****')
+
+response = yelp_api.search_query(category_filter='bikerentals', bounds='37.678799,-123.125740|37.832371,-122.356979', limit=5)
+
+for business in response['businesses']:
+ print('%s\n\tYelp ID: %s\n\trating: %g (%d reviews)\n\taddress: %s' % (business['name'], business['id'], business['rating'],
+ business['review_count'], ', '.join(business['location']['display_address'])))
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example business query. Look at
+# http://www.yelp.com/developers/documentation/v2/business for more
+# information.
+
+business = yelp_api.business_query(id='amys-ice-creams-austin-3')
+print(business)
+
+
--- /dev/null
+from yelpapi import YelpAPI
+from yelp_authentication import CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET
+
+yelp_api = YelpAPI(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET)
+
+# Example business query. Look at
+# http://www.yelp.com/developers/documentation/v2/business for more
+# information.
+
+print("***** selected reviews for Amy's on 6th St. *****")
+
+business = yelp_api.business_query(id='amys-ice-creams-austin-3')
+
+for review in business['reviews']:
+ print('rating: %d\nexcerpt: %s\n' % (review['rating'], review['excerpt']))
+
--- /dev/null
+CONSUMER_KEY = 'CHANGE_ME'
+CONSUMER_SECRET = 'CHANGE_ME'
+TOKEN = 'CHANGE_ME'
+TOKEN_SECRET = 'CHANGE_ME'