public function Twitter::statuses_retweet in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.lib.php \Twitter::statuses_retweet()
- 7.5 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 391 - 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');
return new TwitterStatus($values);
}