You are here

public function Twitter::blocks_destroy in Twitter 7.5

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::blocks_destroy()
  2. 7.6 twitter.lib.php \Twitter::blocks_destroy()

Un-blocks the user specified in the ID parameter for the authenticating user.

Parameters

mixed $id: The numeric id or screen name of a Twitter user.

array $params: An array of parameters.

See also

https://dev.twitter.com/docs/api/1.1/post/blocks/destroy

File

./twitter.lib.php, line 1093
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
Primary Twitter API implementation class

Code

public function blocks_destroy($id, $params = array()) {
  if (is_numeric($id)) {
    $params['user_id'] = $id;
  }
  else {
    $params['screen_name'] = $id;
  }
  $params['image'] = $image;
  return $this
    ->call('blocks/destroy', $params, 'POST');
}