Rename user_ids API.lookup_friendships parameter to user_id
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:48:32 +0000 (21:48 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:48:32 +0000 (21:48 -0600)
tweepy/api.py

index 5b9764b7bbe7efe80ca2f7f059485d926a998126..98c22e052e568e7e8c2cced3a937574d08f63599 100644 (file)
@@ -585,11 +585,11 @@ class API:
         )
 
     @payload('relationship', list=True)
-    def lookup_friendships(self, user_ids=None, screen_names=None, **kwargs):
+    def lookup_friendships(self, user_id=None, screen_names=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_ids),
+            'GET', 'friendships/lookup', list_to_csv(user_id),
             list_to_csv(screen_names), endpoint_parameters=(
                 'user_id', 'screen_name'
             ), **kwargs