public function Twitter::statuses_update in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::statuses_update()
- 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
- 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);
}