public function statusesRetweet($id, $trimUser = null) { $parameters = null; if ($trimUser != null) { $parameters['trim_user'] = $trimUser ? 'true' : 'false'; } // make the call return $this->doCall('statuses/retweet/' . $id . '.json', $parameters, true, 'POST'); }
/** * Tests Twitter->statusesRetweet() */ public function testStatusesRetweet() { $response = $this->twitter->statusesRetweet('241259202004267009'); $this->isTweet($response); $this->twitter->statusesDestroy($response['id']); }