Hey Chris,

1) Is the IP you're using shared? For example, what was the value of
"X-RateLimit-Remaining" _before_ starting the test? If you're concerned with
Rate Limiting, you should really consider authenticating your calls.

2) Looks like you're not using your library correctly for search. Try:
$search = $twitterObj->get_search(array('q' => 'whatever'));

Arnaud / @rno



On Fri, Mar 25, 2011 at 12:24 PM, Chris S. <thedomin...@gmail.com> wrote:

> I am in the process of getting re-acquainted with the API after a lot
> of changes and I have run into some issues.
>
> I am getting rate limited when I do a call to get the follower IDs. As
> I understand it, it has 150 uses on my IP per hour, but I couldn't
> have made more than 4 calls. My script is fairly simple as a test:
>
> $twitterObj = new EpiTwitter();
> $followers = $twitterObj->get_followersIds( array ('screen_name' =>
> 'whoever'));
> print "\n" . count($followers);
>
> This isn't a part of a loop or anything, but I get a Rate Limit
> Exceeded error after only one or 2 calls to this. Any idea what could
> be wrong?
>
> Also, has something changed with search? I attempt to do:
>
> $twitterObj = new EpiTwitter();
> $search = $twitterObj->search('whatever');
> echo $search->responseText;
>
> And I get a 403 Forbidden error.
>
> Both my examples are using the php wrapper found here:
> http://www.jaisenmathai.com/articles/twitter-php-oauth.html
>
> If anyone has any help with my I might be seeing these errors, or if
> there is a better library for PHP to do basic no authentication tasks,
> such as getting a users followers and doing basic search queries, I
> would very much appreciate it.
>
> Thank you.
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to