Hey there !
I’m trying to retweet something with my php app. Seems that the oAuth signature is missing for retweeting something, but i can’t find how to do it. Here is my code :
$id = ‘241259202004267009’; // tweet’s id
$retweet = new TwitterOAuth($myConsumerKey, $myConsumerSecret ,$oauthToken, $oauthTokenSecret);
$retweet->host = “https://api.twitter.com/1.1/”;
$retweet->ssl_verifypeer = TRUE;
$retweet->post(‘statuses/retweet/’.$id);
Unfortunately, i always get the “Bad Authentication Data” twitter error… The problem is that i can generate oAuth signature from the oAuth Tool here (https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/%3Aid) but i would like it to be done automatically in my code. Any ideas ? Thanks