From: Joshua Roesslein Date: Tue, 8 Dec 2009 05:11:49 +0000 (-0600) Subject: Added new local trends methods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=189eaf476106fa85b9ba62c33528532071246c76;p=tweepy.git Added new local trends methods. --- diff --git a/CHANGELOG b/CHANGELOG index 89e17e0..a001f22 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,7 @@ during upgrade will be listed here. new usage: tweepyshell [password] <-- optional now + API - retweet() method now works correctly + - Added local trends method: trends_available() and trends_location() 1.2 -> 1.3 [Current release] ===================== diff --git a/tweepy/api.py b/tweepy/api.py index 7cc1e99..74389ef 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -596,6 +596,20 @@ class API(object): except TweepError: return False + """ trends/available [coming soon] """ + trends_available = bind_api( + path = '/trends/available.json', + parser = parse_json, + allowed_param = ['lat', 'long'] + ) + + """ trends/location [coming soon] """ + def trends_location(self, woeid, *args, **kargs): + return bind_api( + path = '/trends/%s.json' % woeid, + parser = parse_json, + )(self, *args, **kargs) + """ search """ search = bind_api( search_api = True,