From: Harmon Date: Fri, 12 Feb 2021 03:53:11 +0000 (-0600) Subject: Improve parameter order in API.lookup_friendships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd4e9bea80dd9be83b1a7794a61cfa14d8ef53c5;p=tweepy.git Improve parameter order in API.lookup_friendships So as to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index 69bee23..97c0d09 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -585,13 +585,13 @@ class API: ) @payload('relationship', list=True) - def lookup_friendships(self, *, user_id=None, screen_name=None, **kwargs): + def lookup_friendships(self, *, screen_name=None, user_id=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup """ return self.request( - 'GET', 'friendships/lookup', list_to_csv(user_id), - list_to_csv(screen_name), endpoint_parameters=( - 'user_id', 'screen_name' + 'GET', 'friendships/lookup', list_to_csv(screen_name), + list_to_csv(user_id), endpoint_parameters=( + 'screen_name', 'user_id' ), **kwargs )