From e3ec5c11f3f7ebac43747b8a7b0d07530ec34fea Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:47:49 -0600 Subject: [PATCH] Stop allowing positional arguments for API.list_timeline Also improve endpoint parameters order to match Twitter API documentation --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index c96b6ff..8fe7c4b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -969,12 +969,12 @@ class API: @pagination(mode='id') @payload('status', list=True) - def list_timeline(self, *args, **kwargs): + def list_timeline(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses """ return self.request( - 'GET', 'lists/statuses', *args, endpoint_parameters=( - 'owner_screen_name', 'slug', 'owner_id', 'list_id', 'since_id', + 'GET', 'lists/statuses', endpoint_parameters=( + 'list_id', 'slug', 'owner_screen_name', 'owner_id', 'since_id', 'max_id', 'count', 'include_entities', 'include_rts' ), **kwargs ) -- 2.25.1