From 7c8be8de2c9c099b61ec59078a62a2aa3fba8a8e Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 15 Feb 2021 01:46:30 -0600 Subject: [PATCH] Stop allowing positional arguments for API.list_members 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 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 ) -- 2.25.1