From: Josh Roesslein Date: Sat, 7 Nov 2009 20:00:20 +0000 (-0600) Subject: Some updates to list methods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99affddb3949f99deff86e92a3105480f956edbf;p=tweepy.git Some updates to list methods. --- diff --git a/README b/README index 064a0d8..5e0b61f 100644 --- 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) diff --git a/tweepy/api.py b/tweepy/api.py index 1c8ac24..b6cc288 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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)