From 718e2de71ca545db3d3cd919fc96906ddde6f2a0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 4 Sep 2019 02:34:55 -0500 Subject: [PATCH] Add allowed parameters to API.list_subscribers count, include_entities, skip_status --- docs/api.rst | 6 +++++- tweepy/api.py | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index d568147..244ef6c 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 diff --git a/tweepy/api.py b/tweepy/api.py index 73e2d18..c8551a3 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 -- 2.25.1