Add a support of the 'perform_block' param for api.report_spam() method.
authorTAKAHASHI Shuuji <shuuji3@gmail.com>
Sat, 11 Aug 2018 08:16:19 +0000 (17:16 +0900)
committerTAKAHASHI Shuuji <shuuji3@gmail.com>
Sat, 11 Aug 2018 08:16:19 +0000 (17:16 +0900)
tweepy/api.py

index b627f0764da277ed166c381e9b83a46c4b12698f..d20be2d5ca7e05b48824c7142f35a22a374856a4 100644 (file)
@@ -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
         )