do a real retweet for a local repeat

This commit is contained in:
Evan Prodromou
2010-09-03 17:34:10 -04:00
parent 2b56d3b534
commit d6719760d6
2 changed files with 45 additions and 4 deletions

View File

@@ -277,4 +277,19 @@ class TwitterOAuthClient extends OAuthClient
return $ids;
}
/**
* Calls Twitter's /statuses/retweet/id.json API method
*
* @param int $id id of the notice to retweet
*
* @return retweeted status
*/
function statusesRetweet($id)
{
$url = "http://api.twitter.com/1/statuses/retweet/$id.json";
$response = $this->oAuthPost($url);
$status = json_decode($response);
return $status;
}
}