Mangopay/mangopay2-ruby-sdk

Accessing Rate Limit Stats

Closed this issue ยท 7 comments

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

  • How many calls you're allowed.
  • How many calls you have left.
  • The time these will next be reset.

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?

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.

Hi @mickaelpois,

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

Regards.

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 !

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

Excellent, thanks! Perfect implementation - documentation for reference.

Thanks for your feedback @olliebennett