From: Harmon Date: Sun, 14 Feb 2021 06:47:49 +0000 (-0600) Subject: Stop allowing positional arguments for API.list_timeline X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3ec5c11f3f7ebac43747b8a7b0d07530ec34fea;p=tweepy.git Stop allowing positional arguments for API.list_timeline Also improve endpoint parameters order to match Twitter API documentation --- 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 )