public function Twitter::statuses_retweet in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::statuses_retweet()
- 7.6 twitter.lib.php \Twitter::statuses_retweet()
Retweets a tweet. Returns the original tweet with retweet details embedded.
Parameters
int $id: The numerical ID of the desired status.
array $params: an array of parameters.
See also
https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/%3Aid
File
- ./
twitter.lib.php, line 421 - 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_retweet($id, $params = array()) {
$values = $this
->call('statuses/retweet/' . $id, $params, 'POST');
$result = FALSE;
if (!empty($values)) {
$result = new TwitterStatus($values);
}
return $result;
}