.. automethod:: API.blocks_ids
+.. automethod:: API.blocks
+
Direct Message Methods
----------------------
:rtype: :class:`User` object
-.. method:: API.blocks([page])
-
- Returns an array of user objects that the authenticating user is blocking.
-
- :param page: |page|
- :rtype: list of :class:`User` objects
-
-
Mute Methods
------------
), **kwargs
)
+ @pagination(mode='cursor')
+ @payload('user', list=True)
+ def blocks(self, **kwargs):
+ """blocks(*, include_entities, skip_status, cursor)
+
+ Returns an array of user objects that the authenticating user is
+ blocking.
+
+ :param include_entities: |include_entities|
+ :param skip_status: |skip_status|
+ :param cursor: |cursor|
+
+ :rtype: list of :class:`User` objects
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list
+ """
+ return self.request(
+ 'GET', 'blocks/list', endpoint_parameters=(
+ 'include_entities', 'skip_status', 'cursor'
+ ), **kwargs
+ )
+
def media_upload(self, filename, *, file=None, chunked=False,
media_category=None, additional_owners=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/overview
), **kwargs
)
- @pagination(mode='cursor')
- @payload('user', list=True)
- def blocks(self, **kwargs):
- """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list
- """
- return self.request(
- 'GET', 'blocks/list', endpoint_parameters=(
- 'include_entities', 'skip_status', 'cursor'
- ), **kwargs
- )
-
@payload('user')
def report_spam(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-users-report_spam