Add allowed parameters to API.list_subscribers
authorHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 07:34:55 +0000 (02:34 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 4 Sep 2019 07:34:55 +0000 (02:34 -0500)
count, include_entities, skip_status

docs/api.rst
tweepy/api.py

index d568147ef96f4d3985d91f4db871b3212adc5d31..244ef6ca9096a09c8ce85ae35094b6287c9c0414 100644 (file)
@@ -1012,7 +1012,8 @@ List Methods
 
 
 .. method:: API.list_subscribers(list_id/slug, [owner_id/owner_screen_name], \
-                                 [cursor])
+                                 [cursor], [count], [include_entities], \
+                                 [skip_status])
 
    Returns the subscribers of the specified list. Private list subscribers will
    only be shown if the authenticated user owns the specified list.
@@ -1022,6 +1023,9 @@ List Methods
    :param owner_id: |owner_id|
    :param owner_screen_name: |owner_screen_name|
    :param cursor: |cursor|
+   :param count: |count|
+   :param include_entities: |include_entities|
+   :param skip_status: |skip_status|
    :rtype: list of :class:`User` objects
 
 
index 73e2d181e0ab079743bf82439b25a2d6b945bd73..c8551a3b6fbea0a699d244fca132415bff2ea56e 100644 (file)
@@ -1205,14 +1205,16 @@ class API(object):
     def list_subscribers(self):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers
             :allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id',
-                            'cursor'
+                            'cursor', 'count', 'include_entities',
+                            'skip_status'
         """
         return bind_api(
             api=self,
             path='/lists/subscribers.json',
             payload_type='user', payload_list=True,
             allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
-                           'cursor']
+                           'cursor', 'count', 'include_entities',
+                           'skip_status']
         )
 
     @property