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_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&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. >