Add API.mutes_list
authorSayed Mohammad Hossein Torabi <blcksrx@gmail.com>
Fri, 10 May 2019 14:51:43 +0000 (19:21 +0430)
committerSayed Mohammad Hossein Torabi <blcksrx@gmail.com>
Fri, 10 May 2019 14:51:43 +0000 (19:21 +0430)
tweepy/api.py

index c9e9307064e1624dedc294fc7112394e446dd9d1..01411573a389c5f8d980435827ceb49bf03297ef 100644 (file)
@@ -799,6 +799,20 @@ class API(object):
             allowed_param=['cursor'],
             require_auth=True
         )
+    
+    @property
+    def mutes(self):
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-list
+            :allowed_param: 'cursor', 'include_entities', 'skip_status'
+        """
+        return bind_api(
+            api=self,
+            path='/mutes/users/list.json',
+            payload_type='user', payload_list=True,
+            allowed_param=['cursor', 'include_entities', 'skip_status'],
+            required_auth=True
+        )
+           
 
     @property
     def create_mute(self):
@@ -843,7 +857,7 @@ class API(object):
 
     @property
     def blocks_ids(self):
-        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-ids
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/-block-report-users/api-reference/get-blocks-ids
             :allowed_param:'cursor'
         """
         return bind_api(