RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Rate Limited APIs

I’ve been working with a Rate Limited API recently where the rate is ridiculously small for the application. Being a poor dev without bacon all I can afford is the free API key…. and of course the library that I’m using to access the API has no knowledge of how to handle rate limited APIs. I came up with an idea to inject rate limitations via the configuration of the API key. It only took a minor modification to the API wrapper library to recognize that the api key could be a Proc. Pull Request to the library author; rate limiter built; all is right with the world.

https://medium.com/@dvanhoozer/rate-limited-apis-dd9cbe6bfa50

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in