You are here

public function Twitter::statuses_update in Twitter 6.5

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

Updates the authenticating user's current status, also known as tweeting.

Parameters

string $status: The text of the status update (the tweet).

array $params: an array of parameters.

See also

https://dev.twitter.com/docs/api/1.1/post/statuses/update

File

./twitter.lib.php, line 375
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_update($status, $params = array()) {
  $params['status'] = $status;
  $values = $this
    ->call('statuses/update', $params, 'POST');
  return new TwitterStatus($values);
}