I've done some code updating for the project I am working on. I changed the URL of accessing the rate limit and I'm still being returned with the 150/hr rate limit.
[ 06:18:31 am | 241005.11 ] [ @Worf ] TWITTER:URL(http://api.twitter.com/1/account/rate_limit_status.json) [ 06:18:31 am | 241005.11 ] [ @Worf ] Status: All good, 142/150 requests left, Resets: 6:40 AM Running curl on the same URL: C:\ >curl https://api.twitter.com/1/account/rate_limit_status.json {"reset_time":"Tue May 11 12:17:15 +0000 2010","remaining_hits":150,"hourly_limit":150,"reset_time_in_seconds":127358 0235} -Dustin From: Dustin Lennon [mailto:demonicpa...@gmail.com] Sent: Tuesday, May 11, 2010 3:53 AM To: twitter-development-talk@googlegroups.com Subject: RE: [twitter-dev] How would I get remaing hits using OAuth. Ok. It is late and I didn't comprehend it the first time through. I'm understanding now. Thanks. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 3:46 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. As abraham pointed out you should use https://api.twitter.com/1/ to get 350/hr limit else it will be 150 (even for oauth) On Tue, May 11, 2010 at 1:48 PM, Dustin Lennon <demonicpa...@gmail.com> wrote: I was reading on this, I currently have an application that I'll be working on converting to OAuth from Basic Auth. My question is, is the Basic Auth method still limited to 150/hr rate limit? I ask because that is what my app currently returns when I send a request to account/rate_limit_status. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 2:36 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com> wrote: Look at your request "/account/rate_limit_statusaccount/verify_credentials.json". Notice how rate_limit_status and verify_credentials are both jammed together. It also looks like you are using an older version of TwitterOAuth. The newest version uses https://api.twitter.com/1/ as the host which gives you a rate limit of 350/hour instead of 150/hour. To get the rate_limit_status in the newest version call $connection->get('account/rate_limit_status'); Abraham On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage <rishibhan...@gmail.com> wrote: Hi there, About my app - my app deals with showing user his followers information. So I need to check each follower to show result. Everything is going properly except one. While doing this I need to check API remaining hits of account.(whitelisted a/c.) Now what I want is, if my app is using calls of particular a/c then I should get remaining hits of that a/c using OAuth. I am studying Abraham's code on github in that it gives particular user's info, but when I go for rate limit status url for Host like as: public $host = "http://twitter.com/account/rate_limit_status"; it gives result as: stdClass Object ( [request] => /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key =bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_s ignature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEc ezD2Pmn32pmc5O&oauth_version=1.0 [error] => Not found ) Am I going wrong way? Can you suggest me the right one? Thank you in advance. -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.