From: TAKAHASHI Shuuji Date: Sat, 11 Aug 2018 08:16:19 +0000 (+0900) Subject: Add a support of the 'perform_block' param for api.report_spam() method. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6d8d3936b004d6cb0ee087d129fa0c5fd6af8834;p=tweepy.git Add a support of the 'perform_block' param for api.report_spam() method. --- diff --git a/tweepy/api.py b/tweepy/api.py index b627f07..d20be2d 100644 --- 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 )