Skip to content

Commit

Permalink
Stop allowing positional arguments for API.list_subscribers
Browse files Browse the repository at this point in the history
Also improve endpoint parameters order to match Twitter API documentation
  • Loading branch information
Harmon758 committed Feb 15, 2021
1 parent 2df2311 commit 3ee84ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,13 +1087,13 @@ def unsubscribe_list(self, **kwargs):

@pagination(mode='cursor')
@payload('user', list=True)
def list_subscribers(self, *args, **kwargs):
def list_subscribers(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers
"""
return self.request(
'GET', 'lists/subscribers', *args, endpoint_parameters=(
'owner_screen_name', 'slug', 'owner_id', 'list_id', 'cursor',
'count', 'include_entities', 'skip_status'
'GET', 'lists/subscribers', endpoint_parameters=(
'list_id', 'slug', 'owner_screen_name', 'owner_id', 'count',
'cursor', 'include_entities', 'skip_status'
), **kwargs
)

Expand Down

0 comments on commit 3ee84ef

Please sign in to comment.