Added new local trends methods.
authorJoshua Roesslein <jroesslein@gmail.com>
Tue, 8 Dec 2009 05:11:49 +0000 (23:11 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Tue, 8 Dec 2009 05:11:49 +0000 (23:11 -0600)
CHANGELOG
tweepy/api.py

index 89e17e08a86a21f814b11c8b4f20f5bbe4c3f517..a001f226390dc9253c3a1698a5b3a7a1e335b9d7 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -19,6 +19,7 @@ during upgrade will be listed here.
       new usage: tweepyshell <username> [password] <-- optional now
 + API
        - retweet() method now works correctly
+    - Added local trends method: trends_available() and trends_location()
 
 1.2 -> 1.3 [Current release]
 =====================
index 7cc1e996b97ff950c789d79dec51aa6c3057413a..74389ef184c4152b47f3523794de8dc937b92ca2 100644 (file)
@@ -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,