Add count as allowed parameter for API.lists_subscriptions
authorHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 06:52:00 +0000 (01:52 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 06:52:00 +0000 (01:52 -0500)
docs/api.rst
tweepy/api.py

index 48f7acfd54fe9ac72f5f83679d6866dba2a86089..ad3b409defbf56a41829a2f6d17ca33781ff646e 100644 (file)
@@ -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
 
 
index 674a0f9ace5eccd9f54a05cc021eb18ae7b74add..b8ba92de1988dec92688c3dcd77999cc105853da 100644 (file)
@@ -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
         )