From 15ee31c4694dc7524e2735726509ca71314e4b66 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 17:10:43 -0600 Subject: [PATCH] Add endpoint parameters for API.media_upload Add media_category and additional_owners endpoint parameters for API.media_upload --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.25.1