Blocking

POST /api/blocks/create.json

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

Form Parameters:
 
  • user_id – ID of the user for whom to return results for
  • screen_name – handle of the user for whom to return results for
Request Headers:
 
  • Authorization – username and password or OAuth token to authenticate

Example response: User object

POST /api/blocks/destroy.json

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

Form Parameters:
 
  • user_id – ID of the user for whom to return results for
  • screen_name – handle of the user for whom to return results for
Request Headers:
 
  • Authorization – username and password or OAuth token to authenticate

Example response: User object