Blocking

blocks.create(server_url, *args, **kwargs)

Blocks the specified user from following the authenticating user. In addition the blocked user will not show in the authenticating users mentions or timeline (unless repeated by another user). If a follow or friend relationship exists it is destroyed.

Accepts the same parameters as requests.post() except url.

Implements https://twitter-api.readthedocs.io/en/latest/blocks.html#post–api-blocks-create.json

Parameters:server_url (str) – URL of the server
Return type:dict
Returns:User dict
blocks.destroy(server_url, *args, **kwargs)

Un-blocks the specified user from following the authenticating user. If relationships existed before the block was instated, they will not be restored.

Accepts the same parameters as requests.post() except url.

Implements https://twitter-api.readthedocs.io/en/latest/blocks.html#post–api-blocks-destroy.json

Parameters:server_url (str) – URL of the server
Return type:dict
Returns:User dict