POST /statuses/retweet
is giving me this error while POST statuses/tweet
and GET search/tweets
are working fine.
public $host = "https://api.twitter.com/1.1/";
$con = $this->oauth();
$retweets = $con->post('statuses/retweet/', array('id' => $searchid));
The query will get the Status id_str
of the object. It is in string format.
/**
* POST wrapper for oAuthRequest.
*/
function post($url, $parameters = array()) {
$response = $this->oAuthRequest($url, 'POST', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}
API console gives me no error:
https://api.twitter.com/1.1/statuses/retweet/{id}.json