The doc says: "IP whitelisting takes precedence to account rate limits. GET requests from a whitelisted IP address made on a user's behalf will be deducted from the whitelisted IP's limit, not the users."
http://apiwiki.twitter.com/Rate-limiting If he's seeing a 20k limit, then that implies it's a whitelisted IP. According to the above, that IP would take precedence over the account user's passed in credentials. Yes? Both Matt and Doug answered this question though, so I feel like I must be reading this wrong. :) -damon -- http://twitter.com/damon On Mon, Jul 13, 2009 at 7:48 PM, Doug Williams<d...@twitter.com> wrote: > Martin, > That's interesting. > > Is there a pattern to this? Can you offer steps for recreation? It would be > helpful to have full header information when this does happen so we can look > to see if a specific machine that is returning incorrect information. > > Thanks, > Doug > > > > On Mon, Jul 13, 2009 at 4:26 PM, Martin Omander <moman...@google.com> wrote: >> >> Hi there, >> >> I'm getting the same thing, that is the rate limit for my IP address >> rather than for the account... most of the time. I run this curl >> command >> >> curl -u <username>:<password> >> http://twitter.com/account/rate_limit_status.xml >> >> where <username> and <password> are the account's real username and >> password. Most of the time the response contains an hourly-limit of >> 20,000, for my IP address I assume. But occasionally the exact same >> curl command returns an hourly-limit of 150. Very odd. I assume curl >> handles the credentials correctly. >> >> Any thoughts? >> >> /Martin >> >> >> >> >> On Jul 13, 9:54 am, Justin <justin.realw...@googlemail.com> wrote: >> > Sorry about emailing you my last response. >> > >> > I understand what you're saying about firefox - though I'm having the >> > same issue with requests via Microsoft.XMLHTTP requests - it's gone >> > the end of the day now (I do have a habit of starting these things >> > when there's no time). Will carry on the fight tomorrow - at least I >> > have a direction now - will try some other request methods. >> > Many thanks once again for your quick responses. >> > >> > @JustinReid >> > >> > On Jul 13, 5:26 pm, Matt Sanford <m...@twitter.com> wrote: >> > >> > >> > >> > > Hi Justin, >> > >> > > The user:pass is a shortcut used by some browsers and libraries >> > > but is not supported in all libraries. What language/library are you >> > > using? Most of them have some option for setting the user and password >> > > >> > > directly. Also, the most common issue when seeing the IP limit is an >> > > incorrect password. You should also try calling verify_credentials to >> > > >> > > make sure the password is correct and everything is being received >> > > correctly by Twitter. >> > >> > > Thanks; >> > > – Matt Sanford / @mzsanford >> > > Twitter Dev >> > >> > > On Jul 13, 2009, at 9:22 AM, Justin wrote: >> > >> > > > I feel a bit silly asking this in the time of OAuth - but I'm not >> > > > quite there yet... >> > >> > > > So how to return the rate limit for a given user? >> > > > Looking at the api documentation I presume you need to authenticate >> > > > (log in) >> > >> > > > The obvious way to do this is via GET with: >> > > > http://username:passw...@twitter.com/account/rate_limit_status.xml >> > > > I've also tried base64'ing the username:password as suggested here: >> > > >http://en.wikipedia.org/wiki/Basic_access_authentication >> > > >http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml >> > >> > > > However, every time I try I'm returned with the rate limit for the >> > > > IP >> > > > address and not the user. >> > >> > > > I know I'm missing something (a few sandwiches from the picnic >> > > > probably) - could someone enlighten me? >> > >> > > > Many thanks