Commit 89aa641f authored by Robert Dennis's avatar Robert Dennis
Browse files

added the geo_search API method, no attribute:street_address support at this time

parent 6b77b6d2
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment