projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a8783c
)
Add endpoint parameters for API.media_upload
author
Harmon
<Harmon758@gmail.com>
Fri, 19 Feb 2021 23:10:43 +0000
(17:10 -0600)
committer
Harmon
<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
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index e09f7b832ba270a92fe6dfc8b89ab5001297d7fa..34d89321374fc72a9ce2eb0958783d1e6cecd44e 100644
(file)
--- 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):