Require media_id parameter for API.get_media_upload_status
authorHarmon <Harmon758@gmail.com>
Fri, 15 Jan 2021 19:22:17 +0000 (13:22 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 15 Jan 2021 19:22:32 +0000 (13:22 -0600)
tweepy/api.py

index c181dd9a6ddaaa436b1ee987be31ddeec0339721..77c35da79c705f9b104488e9622ad4b601ddd075 100644 (file)
@@ -386,7 +386,7 @@ class API:
             require_auth=True
         )(*args, files=files, **kwargs)
 
-    def get_media_upload_status(self, *args, **kwargs):
+    def get_media_upload_status(self, media_id, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/get-media-upload-status
             :allowed_param: 'media_id'
         """
@@ -397,7 +397,7 @@ class API:
             allowed_param=['media_id'],
             require_auth=True,
             upload_api=True
-        )(*args, command='STATUS', **kwargs)
+        )(*args, command='STATUS', media_id=media_id, **kwargs)
 
     @property
     def destroy_status(self):