[eluser]jmisavage[/eluser]
Hey I just figured this out. You'll need to modify the Twitter class in order to get it to work. In the $_methods array add a new entry:
Code:
'statuses/retweet' => array('http' => 'post', 'auth' => TRUE),
Then you to modify the call method. You should see an if statement that counts the parts of the method. Retweeting uses 3 parts and that isn't being handled. Right now I've only added a special case for retweet since I don't want to break anything else.
Code:
if ( $this->oauth !== NULL )
{
$parts = explode('/', $method);
if(preg_match("/retweet/", $method)) {
$method_string = $http.'_'.$parts[0].ucfirst($parts[1]).($parts[2]);
}
else if ( count($parts) > 1 )
{
$method_string = $http.'_'.$parts[0].ucfirst($parts[1]);
}
else
{
$method_string = $http.'_'.$parts[0];
}
$data = $this->oauth->$method_string($params);
return $data->_result;
}