+------------------------------------------+--------------------------------------+
| .. centered:: |Mute, block, and report users|_ |
+------------------------------------------+--------------------------------------+
- | `GET blocks/ids`_ | :meth:`API.blocks_ids` |
+ | `GET blocks/ids`_ | :meth:`API.get_blocked_ids` |
+------------------------------------------+--------------------------------------+
| `GET blocks/list`_ | :meth:`API.get_blocks` |
+------------------------------------------+--------------------------------------+
Mute, block, and report users
-----------------------------
-.. automethod:: API.blocks_ids
+.. automethod:: API.get_blocked_ids
.. automethod:: API.get_blocks
def testgetblocks(self):
self.api.get_blocks()
- @tape.use_cassette('testblocksids.json')
- def testblocksids(self):
- self.api.blocks_ids()
+ @tape.use_cassette('testgetblockedids.json')
+ def testgetblockedids(self):
+ self.api.get_blocked_ids()
# TODO: Rewrite test to be less brittle. It fails way too often.
# def testcreateupdatedestroylist(self):
@pagination(mode='cursor')
@payload('ids')
- def blocks_ids(self, **kwargs):
- """blocks_ids(*, stringify_ids, cursor)
+ def get_blocked_ids(self, **kwargs):
+ """get_blocked_ids(*, stringify_ids, cursor)
Returns an array of numeric user IDs the authenticating user is
blocking.