From: Harmon Date: Fri, 15 Jan 2021 19:22:17 +0000 (-0600) Subject: Require media_id parameter for API.get_media_upload_status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ea0d02ada1973c98993fd9b066cf5689dcef090;p=tweepy.git Require media_id parameter for API.get_media_upload_status --- diff --git a/tweepy/api.py b/tweepy/api.py index c181dd9..77c35da 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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):