Require id parameter for API.create_favorite
authorHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 20:00:18 +0000 (14:00 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 20:00:18 +0000 (14:00 -0600)
tweepy/api.py

index bccff3d03c14990c35fbf19a51b6193b871b39a9..e04576cebaacdb65f61413582603fdb43a909046 100644 (file)
@@ -751,11 +751,11 @@ class API:
         )
 
     @payload('status')
-    def create_favorite(self, *args, **kwargs):
+    def create_favorite(self, id, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-create
         """
         return self.request(
-            'POST', 'favorites/create', *args, endpoint_parameters=(
+            'POST', 'favorites/create', id, *args, endpoint_parameters=(
                 'id',
             ), **kwargs
         )