Giter Site home page Giter Site logo

Comments (7)

pengwynn avatar pengwynn commented on August 22, 2024

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.

 avatar commented on August 22, 2024

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.

sferik avatar sferik commented on August 22, 2024

The gem provides a verify_credentials method that you can already use to do this.

from twitter.

 avatar commented on August 22, 2024

The problem is that the verify_credentials method was taking hits against the API limit.

from twitter.

sferik avatar sferik commented on August 22, 2024

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.

 avatar commented on August 22, 2024

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.

sferik avatar sferik commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.