From: Harmon Date: Wed, 4 Sep 2019 06:52:00 +0000 (-0500) Subject: Add count as allowed parameter for API.lists_subscriptions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b7298140f1eb49a0b2de75a68f2344f7611a3850;p=tweepy.git Add count as allowed parameter for API.lists_subscriptions --- diff --git a/docs/api.rst b/docs/api.rst index 48f7acf..ad3b409 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -849,7 +849,8 @@ List Methods :rtype: list of :class:`List` objects -.. method:: API.lists_subscriptions([screen_name], [user_id], [cursor]) +.. method:: API.lists_subscriptions([screen_name], [user_id], [cursor], \ + [count]) Obtain a collection of the lists the specified user is subscribed to, 20 lists per page by default. Does not include the user's own lists. @@ -857,6 +858,7 @@ List Methods :param screen_name: |screen_name| :param user_id: |user_id| :param cursor: |cursor| + :param count: |count| :rtype: list of :class:`List` objects diff --git a/tweepy/api.py b/tweepy/api.py index 674a0f9..b8ba92d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1028,13 +1028,13 @@ class API(object): @property def lists_subscriptions(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions - :allowed_param: 'screen_name', 'user_id', 'cursor' + :allowed_param: 'screen_name', 'user_id', 'cursor', 'count' """ return bind_api( api=self, path='/lists/subscriptions.json', payload_type='list', payload_list=True, - allowed_param=['screen_name', 'user_id', 'cursor'], + allowed_param=['screen_name', 'user_id', 'cursor', 'count'], require_auth=True )