You are here

public function Twitter::retweet in Twitter 7.6

Same name and namespace in other branches
  1. 6.5 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 172
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);
  $result = FALSE;
  if (!empty($values)) {
    $result = new TwitterStatus($values);
  }
  return $result;
}