public function Twitter::retweet in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::retweet()
- 7.6 twitter.lib.php \Twitter::retweet()
See also
https://dev.twitter.com/docs/api/1/post/statuses/retweet/%3Aid
File
- ./
twitter.lib.php, line 177 - 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 retweet($tweet_id, $params = array()) {
$params = array();
$values = $this
->call('statuses/retweet/' . $tweet_id, $params, 'POST', TRUE);
$result = FALSE;
if (!empty($values)) {
$result = new TwitterStatus($values);
}
return $result;
}