Comments (7)
Interesting. I coulda swore that verify_credentials used to be excluded from rate limiting but according to the docs is is not. I'll take a look at adding something like this. Unless you beat me to it with a patch with tests :-)
from twitter.
I would beat you to it with a patch and and tests, but I am fairly new to ruby, and have no clue at how to make gems or patch them for that matter.
from twitter.
The gem provides a verify_credentials method that you can already use to do this.
from twitter.
The problem is that the verify_credentials method was taking hits against the API limit.
from twitter.
It looks like you're just calling Twitter's account/verify_credentials resource, which is the same resource used by the gem's verify_credentials method. Can you explain why one method counts against the rate limit but the other does not?
from twitter.
No, I can't. This could have already been patched too. This bug was placed back in june. I think at the time the verify_credentials was going through a different call that was against the API limit.
from twitter.
According to Twitter's documentation the account/verify_credentials resource is rate limited: http://dev.twitter.com/doc/get/account/verify_credentials
So, it's not surprising to me that calling the verify_credentials method subtracts one from your available rate limit hits. What I don't understand is how your method avoids paying this cost. According to my testing, they both do: https://gist.github.com/2153582e5786957a8ee7
Can you reproduce these results?
from twitter.
Related Issues (20)
- Cannot add Quick Replies to welcome message
- Public metrics Support HOT 1
- Issue installing with gem HOT 1
- callback token is null HOT 1
- OAuthActivity Must initialize Twitter before using getInstance
- Bulutdp HOT 2
- Oauth2 access token secret for Twitter
- Getting users who liked a tweet
- ruby 3+ and t/twitter result in a lot of frozen string errors HOT 2
- review gitflow
- Tweet
- API V2.0 support HOT 10
- Code is not able to compile HOT 1
- Could not authenticate you HOT 3
- Why there are ellipsis on long messages? HOT 1
- The .user method returns a 403 forbidden and needs to be upgraded HOT 2
- update with media returns 403
- Undefined method `id' for nil:NilClass
- Changelog.md says minimum required version is 2.7.7 HOT 1
- Could not authenticate you
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter.