projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efe385
)
Add a support of the 'perform_block' param for api.report_spam() method.
author
TAKAHASHI Shuuji
<shuuji3@gmail.com>
Sat, 11 Aug 2018 08:16:19 +0000
(17:16 +0900)
committer
TAKAHASHI Shuuji
<shuuji3@gmail.com>
Sat, 11 Aug 2018 08:16:19 +0000
(17:16 +0900)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index b627f0764da277ed166c381e9b83a46c4b12698f..d20be2d5ca7e05b48824c7142f35a22a374856a4 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-868,14
+868,14
@@
class API(object):
@property
def report_spam(self):
""" :reference: https://dev.twitter.com/rest/reference/post/users/report_spam
- :allowed_param:'user_id', 'screen_name'
+ :allowed_param:'user_id', 'screen_name'
, 'perform_block'
"""
return bind_api(
api=self,
path='/users/report_spam.json',
method='POST',
payload_type='user',
- allowed_param=['user_id', 'screen_name'],
+ allowed_param=['user_id', 'screen_name'
, 'perform_block'
],
require_auth=True
)