Add cursor option to blocks_ids and mutes_ids
authorOleg Komarov <oleg.komarov11@gmail.com>
Sat, 4 May 2019 08:21:25 +0000 (10:21 +0200)
committerokomarov <oleg.komarov11@gmail.com>
Sat, 4 May 2019 08:30:54 +0000 (09:30 +0100)
docs/api.rst
tweepy/api.py

index 3148836a604f5c7975d4dbcdf50d96658c15bc05..268fa80bcdc53af894c7aff739ba29e16af6b3f2 100644 (file)
@@ -477,11 +477,12 @@ Block Methods
    :rtype: list of :class:`User` objects
 
 
-.. method:: API.blocks_ids()
+.. method:: API.blocks_ids([cursor])
 
    Returns an array of numeric user ids the authenticating user is
    blocking.
 
+   :param cursor: |cursor|
    :rtype: list of Integers
 
 
@@ -508,10 +509,11 @@ Mute Methods
    :rtype: :class:`User` object
 
 
-.. method:: API.mutes_ids()
+.. method:: API.mutes_ids([cursor])
 
    Returns an array of numeric user ids the authenticating user has muted.
 
+   :param cursor: |cursor|
    :rtype: list of Integers
 
 
index 599e2606574db0e0feeb883e932cd496117eb62b..40eb05e139d84616fedfcf2d4278fcd4620bd3b6 100644 (file)
@@ -789,11 +789,14 @@ class API(object):
 
     @property
     def mutes_ids(self):
-        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-ids """
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-ids
+            :allowed_param:'cursor'
+        """
         return bind_api(
             api=self,
             path='/mutes/users/ids.json',
             payload_type='json',
+            allowed_param=['cursor'],
             require_auth=True
         )
 
@@ -840,11 +843,14 @@ 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/mute-block-report-users/api-reference/get-blocks-ids
+            :allowed_param:'cursor'
+        """
         return bind_api(
             api=self,
             path='/blocks/ids.json',
             payload_type='json',
+            allowed_param=['cursor'],
             require_auth=True
         )