You are here

public function Twitter::retweet in Twitter 6.5

Same name and namespace in other branches
  1. 7.6 twitter.lib.php \Twitter::retweet()
  2. 7.5 twitter.lib.php \Twitter::retweet()

See also

https://dev.twitter.com/docs/api/1/post/statuses/retweet/%3Aid

File

./twitter.lib.php, line 167
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
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);
  return new TwitterStatus($values);
}