Statuses/show/ with OAuth, How?


#1

I am currently using this simple function to get data from twitter API but my rate limit is 150 as i am not using OAuth:
public function getTweetData($idTweet){
$url = ‘https://api.twitter.com/1/statuses/show/’.$idTweet.’.json’;
$json = file_get_contents( $url );
return json_decode($json, true);
}

I was wondering how can i authenticate my app to get the 350 limit rate.
I am currently using CakePHP framework and i am using this plugin called “CakePHP-2.x-Twitter-Plugin” to work with the twitter API:

They say that “This plugin does not support the “Twitter for Websites” Features (https://dev.twitter.com/docs/twitter-for-websites) like follow buttons or direct authentication.”

So, is what i am looking for, a direct authentication?
If so, i wouldn’t be able to work with this plugin, so, which library would you recommend me for PHP to make this auth call?

Thanks.


#2

Hi,
I’ve got a similar problem. I use my oAuth keys, but I can’t get anything out of statuses/show as I get this {“errors”:[{“message”:“Bad Authentication data”,“code”:215}]}
Since the documentation isn’t helpful on this matter and using the oAuth “credentials generator” doesn’t work as well, I wonder if there is a solution or if simply we can’t do anything to get a status from the id via api.

Thanks in advance for your attention.

ROAR