Add endpoint parameters for API.media_upload
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 23:10:43 +0000 (17:10 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 23:10:43 +0000 (17:10 -0600)
Add media_category and additional_owners endpoint parameters for API.media_upload

tweepy/api.py

index e09f7b832ba270a92fe6dfc8b89ab5001297d7fa..34d89321374fc72a9ce2eb0958783d1e6cecd44e 100644 (file)
@@ -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):