From: Harmon Date: Wed, 4 Sep 2019 07:08:50 +0000 (-0500) Subject: Add include_entities as allowed parameter for API.list_timeline X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=444ec9f8e2ec60415f2b18ba61158b136d27e380;p=tweepy.git Add include_entities as allowed parameter for API.list_timeline --- diff --git a/docs/api.rst b/docs/api.rst index f957197..fe2593f 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -863,7 +863,8 @@ List Methods .. method:: API.list_timeline(list_id/slug, [owner_id/owner_screen_name], \ - [since_id], [max_id], [count], [include_rts]) + [since_id], [max_id], [count], \ + [include_entities], [include_rts]) Returns a timeline of tweets authored by members of the specified list. Retweets are included by default. Use the ``include_rts=false`` parameter to @@ -876,6 +877,7 @@ List Methods :param since_id: |since_id| :param max_id: |max_id| :param count: |count| + :param include_entities: |include_entities| :param include_rts: A boolean indicating whether the list timeline will contain native retweets (if they exist) in addition to the standard stream of tweets. The output format of retweeted tweets is identical to diff --git a/tweepy/api.py b/tweepy/api.py index 4311528..73e2d18 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1042,14 +1042,16 @@ class API(object): def list_timeline(self): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses :allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id', - 'since_id', 'max_id', 'count', 'include_rts' + 'since_id', 'max_id', 'count', 'include_entities', + 'include_rts' """ return bind_api( api=self, path='/lists/statuses.json', payload_type='status', payload_list=True, allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id', - 'since_id', 'max_id', 'count', 'include_rts'] + 'since_id', 'max_id', 'count', 'include_entities', + 'include_rts'] ) @property