Skip to content

Commit

Permalink
Stop allowing positional arguments for API.get_list
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 14, 2021
1 parent ea1653b commit 92dc37f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweepy/api.py
Expand Up @@ -980,12 +980,12 @@ def list_timeline(self, **kwargs):
)

@payload('list')
def get_list(self, *args, **kwargs):
def get_list(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-show
"""
return self.request(
'GET', 'lists/show', *args, endpoint_parameters=(
'owner_screen_name', 'owner_id', 'slug', 'list_id'
'GET', 'lists/show', endpoint_parameters=(
'list_id', 'slug', 'owner_screen_name', 'owner_id'
), **kwargs
)

Expand Down

0 comments on commit 92dc37f

Please sign in to comment.