Some updates to list methods.
authorJosh Roesslein <jroesslein@gmail.com>
Sat, 7 Nov 2009 20:00:20 +0000 (14:00 -0600)
committerJosh Roesslein <jroesslein@gmail.com>
Sat, 7 Nov 2009 20:00:20 +0000 (14:00 -0600)
README
tweepy/api.py

diff --git a/README b/README
index 064a0d85a69d0c2de51c77c54fb0386326ff089b..5e0b61ffa8c72867bbee9c48b387f3f982691c27 100644 (file)
--- a/README
+++ b/README
@@ -9,7 +9,7 @@ A Twitter library for Python! Also works with identi.ca/laconi.ca !
 
 Features:
   + OAuth support
-  + Up-to-date with Twitter API
+  + Covers the entire Twitter API
   + Actively under development
   + Streaming API support
   + Cache system (memory, file)
index 1c8ac248dbd076366c1d11ea2f1b80232389e017..b6cc28867e5551da6aa9226908b137adbcf765a2 100644 (file)
@@ -495,11 +495,19 @@ class API(object):
             require_auth = True
         )(self, *args, **kargs)
 
+    def lists_subscriptions(self, *args, **kargs):
+        return bind_api(
+            path = '/%s/lists/subscriptions.json' % self.auth.get_username(),
+            parser = parse_lists,
+            allowed_param = ['cursor'],
+            require_auth = True
+        )(self, *args, **kargs)
+
     def list_timeline(self, owner, slug, *args, **kargs):
         return bind_api(
             path = '/%s/lists/%s/statuses.json' % (owner, slug),
             parser = parse_statuses,
-            allowed_param = ['page']
+            allowed_param = ['since_id', 'max_id', 'count', 'page']
         )(self, *args, **kargs)
 
     def get_list(self, owner, slug):
@@ -512,7 +520,7 @@ class API(object):
         return bind_api(
             path = '/%s/%s/members.json' % (self.auth.get_username(), slug),
             method = 'POST',
-            parser = parse_user,
+            parser = parse_list,
             allowed_param = ['id'],
             require_auth = True
         )(self, *args, **kargs)