From: Harmon Date: Fri, 19 Feb 2021 23:10:43 +0000 (-0600) Subject: Add endpoint parameters for API.media_upload X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=15ee31c4694dc7524e2735726509ca71314e4b66;p=tweepy.git Add endpoint parameters for API.media_upload Add media_category and additional_owners endpoint parameters for API.media_upload --- diff --git a/tweepy/api.py b/tweepy/api.py index e09f7b8..34d8932 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -354,9 +354,9 @@ class API: kwargs.update({'headers': headers, 'post_data': post_data}) return self.request( - 'POST', 'media/upload', *args, - endpoint_parameters=(), - upload_api=True, **kwargs + 'POST', 'media/upload', *args, endpoint_parameters=( + 'media_category', 'additional_owners' + ), upload_api=True, **kwargs ) def create_media_metadata(self, media_id, alt_text, **kwargs):