You are here

public function Twitter::statuses_destroy in Twitter 6.5

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

Destroys the status specified by the required ID parameter.

Parameters

array $params: an array of parameters.

Return value

TwitterStatus object if successful or FALSE.

See also

https://dev.twitter.com/docs/api/1.1/get/statuses/destroy

File

./twitter.lib.php, line 355
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 statuses_destroy($id, $params = array()) {
  $values = $this
    ->call('statuses/update', $params, 'POST');
  if ($values) {
    return new TwitterStatus($values);
  }
  else {
    return FALSE;
  }
}