public function Twitter::status_update in Twitter 6.3
Same name and namespace in other branches
- 7.3 twitter.lib.php \Twitter::status_update()
Post a new status.
See also
https://dev.twitter.com/docs/api/1/post/statuses/update
File
- ./
twitter.lib.php, line 189 - Classes to implement the full Twitter API
Class
- Primary Twitter API implementation class Supports the full REST API for twitter.
Code
public function status_update($status, $params = array()) {
$params['status'] = $status;
if ($this->source) {
$params['source'] = $this->source;
}
if ($values = $this
->call('statuses/update', $params, 'POST', TRUE)) {
return new TwitterStatus($values);
}
}