From: Harmon Date: Mon, 15 Feb 2021 07:46:30 +0000 (-0600) Subject: Stop allowing positional arguments for API.list_members X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7c8be8de2c9c099b61ec59078a62a2aa3fba8a8e;p=tweepy.git Stop allowing positional arguments for API.list_members Also improve endpoint parameters order to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index bb5a179..8d303b2 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1043,12 +1043,12 @@ class API: @pagination(mode='cursor') @payload('user', list=True) - def list_members(self, *args, **kwargs): + def list_members(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members """ return self.request( - 'GET', 'lists/members', *args, endpoint_parameters=( - 'owner_screen_name', 'slug', 'list_id', 'owner_id', 'count', + 'GET', 'lists/members', endpoint_parameters=( + 'list_id', 'slug', 'owner_screen_name', 'owner_id', 'count', 'cursor', 'include_entities', 'skip_status' ), **kwargs )