Skip to content

Commit

Permalink
Stop allowing positional arguments for API.favorites
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 13, 2021
1 parent 2b91edc commit e80b49a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,12 @@ def update_profile(self, **kwargs):

@pagination(mode='id')
@payload('status', list=True)
def favorites(self, *args, **kwargs):
def favorites(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list
"""
return self.request(
'GET', 'favorites/list', *args, endpoint_parameters=(
'screen_name', 'user_id', 'max_id', 'count', 'since_id',
'GET', 'favorites/list', endpoint_parameters=(
'user_id', 'screen_name', 'count', 'since_id', 'max_id',
'include_entities'
), **kwargs
)
Expand Down

0 comments on commit e80b49a

Please sign in to comment.