+------------------------------------------+--------------------------------------+
| `GET blocks/ids`_ | :meth:`API.blocks_ids` |
+------------------------------------------+--------------------------------------+
- | `GET blocks/list`_ | :meth:`API.blocks` |
+ | `GET blocks/list`_ | :meth:`API.get_blocks` |
+------------------------------------------+--------------------------------------+
| `GET mutes/users/ids`_ | :meth:`API.mutes_ids` |
+------------------------------------------+--------------------------------------+
.. automethod:: API.blocks_ids
-.. automethod:: API.blocks
+.. automethod:: API.get_blocks
.. automethod:: API.mutes_ids
self.api.destroy_block(screen_name='twitter')
self.api.create_friendship(screen_name='twitter') # restore
- @tape.use_cassette('testblocks.json')
- def testblocks(self):
- self.api.blocks()
+ @tape.use_cassette('testgetblocks.json')
+ def testgetblocks(self):
+ self.api.get_blocks()
@tape.use_cassette('testblocksids.json')
def testblocksids(self):
@pagination(mode='cursor')
@payload('user', list=True)
- def blocks(self, **kwargs):
- """blocks(*, include_entities, skip_status, cursor)
+ def get_blocks(self, **kwargs):
+ """get_blocks(*, include_entities, skip_status, cursor)
Returns an array of user objects that the authenticating user is
blocking.