Skip to content

Commit

Permalink
Merge pull request tweepy#136 from rdennis463/geo_search
Browse files Browse the repository at this point in the history
added the geo_search API method,
  • Loading branch information
joshthecoder committed Dec 29, 2011
2 parents 6b77b6d + 89aa641 commit 41fe5dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tweepy/api.py
Expand Up @@ -698,6 +698,7 @@ def is_subscribed_list(self, owner, slug, user_id):
)

""" geo/nearby_places """
# listed as deprecated on twitter's API documents
nearby_places = bind_api(
path = '/geo/nearby_places.json',
payload_type = 'json',
Expand All @@ -711,6 +712,13 @@ def is_subscribed_list(self, owner, slug, user_id):
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):
Expand Down

0 comments on commit 41fe5dc

Please sign in to comment.