hi.
i have a script that pulls the feeds of a specific person in my
following list. I have tried to approaches , both of which over time
produce the same results. The first attempt was to use the
Twittersource from the bakery(http://bakery.cakephp.org/articles/view/
twitter-datasource). The second approach was to curl the results
through a custom method.
function _getCurrentTweets($user = NULL)
{
$tw = curl_init();
curl_setopt($tw, CURLOPT_GET, 1);
if (!$user) {
curl_setopt($tw, CURLOPT_URL, $this->Tweet->tweets);
curl_setopt($tw, CURLOPT_USERPWD, $this->Tweet->login);
}else
{
$t_url = $this->Tweet->tweetsWithUser.$user;
curl_setopt($tw, CURLOPT_URL, $t_url);
}
//curl_setopt($tw, CURLOPT_POST, 1);
curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);
$twi = curl_exec($tw);
curl_close($tw);
$tweeters = new SimpleXMLElement($twi);
return $tweeters;
}
Either way, after a few renderings, i get the ill desired:
{"request":"\/statuses\/user_timeline.xml?
screen_name=user_screen_name_example","error":"Rate limit exceeded.
Clients may not make more than 150 requests per hour."}
However, if i query the twitter api to see how many requests i truly
have left, i am no where near 150. I have in my controller var
$cacheAction = "1800"; and i am using the Cache helper....perhaps
there is a bigger picture i am missing? I had thought this was a
caching issue, but now i am not so sure.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en