projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b83984
)
Require id parameter for API.destroy_favorite
author
Harmon
<Harmon758@gmail.com>
Sat, 13 Feb 2021 20:04:59 +0000
(14:04 -0600)
committer
Harmon
<Harmon758@gmail.com>
Sat, 13 Feb 2021 20:04:59 +0000
(14:04 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 8c2efd5e44325749f89ec3467fd3169fda48a977..a5ea9fb92f4aa70ca480e5fd192ab1b99842fa65 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-761,11
+761,11
@@
class API:
)
@payload('status')
- def destroy_favorite(self, *args, **kwargs):
+ def destroy_favorite(self,
id,
*args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy
"""
return self.request(
- 'POST', 'favorites/destroy', *args, endpoint_parameters=(
+ 'POST', 'favorites/destroy',
id,
*args, endpoint_parameters=(
'id',
), **kwargs
)