Mangopay / mangopay2-ruby-sdk

Ruby Gem for MANGOPAY
https://rubygems.org/gems/mangopay
MIT License
42 stars 38 forks source link

Accessing Rate Limit Stats #68

Closed olliebennett closed 7 years ago

olliebennett commented 7 years ago

The API docs around rate limiting show the information returned via the API for rate limit tracking; specifically:

I would like to be able to run a script which obeys the rate limit. Is rate limit information provided via the SDK? How might I inspect the response headers (for example), or achieve this some other way?

mickaelpois commented 7 years ago

Hello @olliebennett and sorry for this delay ! Rate limit infos will be available ASAP from response headers, we will provide you an update when it will be available !

Have a nice day.

my-kel commented 7 years ago

Hi @mickaelpois,

Do you need some help implementing response headers retrieval in this gem?

Regards.

mickaelpois commented 7 years ago

Hi @my-kel !

We are fully open to any help with this subject 👍 Feel free to create a PR with your proposal, we will have a look at it for sure !

hobailey commented 7 years ago

Add rate limit headers to SDK

mickaelpois commented 7 years ago

Rate limiting support is now available from our latest release, thanks for your patience everyone !

olliebennett commented 7 years ago

Excellent, thanks! Perfect implementation - documentation for reference.

gabriellupu commented 7 years ago

Thanks for your feedback @olliebennett