From: Robert Dennis Date: Mon, 28 Nov 2011 01:59:45 +0000 (-0500) Subject: added the geo_search API method, no attribute:street_address support at this time X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=89aa641fefab7b540868e0a840342515b605e056;p=tweepy.git added the geo_search API method, no attribute:street_address support at this time --- diff --git a/tweepy/api.py b/tweepy/api.py index 7b9231c..28d9f06 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -698,6 +698,7 @@ class API(object): ) """ geo/nearby_places """ + # listed as deprecated on twitter's API documents nearby_places = bind_api( path = '/geo/nearby_places.json', payload_type = 'json', @@ -711,6 +712,13 @@ class API(object): allowed_param = ['id'] ) + """ geo/search """ + geo_search = bind_api( + path = '/geo/search.json', + payload_type = 'json', + allowed_param = ['lat', 'long', 'query', 'ip', 'granularity', 'accuracy', 'max_results', 'contained_within'] + ) + """ Internal use only """ @staticmethod def _pack_image(filename, max_size):