From 189eaf476106fa85b9ba62c33528532071246c76 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Mon, 7 Dec 2009 23:11:49 -0600 Subject: [PATCH] Added new local trends methods. --- CHANGELOG | 1 + tweepy/api.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) 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, -- 2.25.1