reformatted/tweaked and added the examples from example.py in the yelpapi package
[yelp-api-cdsw] / yelp3-json.py
diff --git a/yelp3-json.py b/yelp3-json.py
new file mode 100644 (file)
index 0000000..06c814d
--- /dev/null
@@ -0,0 +1,13 @@
+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)
+
+

Benjamin Mako Hill || Want to submit a patch?