Replace API.retweets id allowed_param with status_id parameter
authorHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 02:23:55 +0000 (20:23 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 02:23:55 +0000 (20:23 -0600)
tweepy/api.py

index aa2edeabd1ca2e8acc61cc6c24e2d06059a4f465..861c624779d210d2b36aefbb0b2913bd3e83ae53 100644 (file)
@@ -302,15 +302,15 @@ class API:
             require_auth=True, **kwargs
         )
 
-    def retweets(self, *args, **kwargs):
+    def retweets(self, status_id, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id
-            :allowed_param: 'id', 'count'
+            :allowed_param: 'count'
         """
         return bind_api(
             *args, api=self,
-            path='/statuses/retweets/{id}.json',
+            path=f'/statuses/retweets/{status_id}.json',
             payload_type='status', payload_list=True,
-            allowed_param=['id', 'count'],
+            allowed_param=['count'],
             require_auth=True, **kwargs
         )