mangopay2-php-sdk icon indicating copy to clipboard operation
mangopay2-php-sdk copied to clipboard

Docs misleading for Rate Limiting

Open chrs-myrs opened this issue 2 years ago • 1 comments

The main readme suggests that $rateLimit->ResetTimeTimestamp contains the number of milliseconds until the limit reset. This is evidently wrong and contradicts the information in the API and PHPDoc documentation. My code is currently waiting 19 days between each call :laughing:

chrs-myrs avatar Mar 31 '22 08:03 chrs-myrs

Hello @chrs-myrs,

Thanks for the feedback, we are going to fix this readme.

fredericdelordm avatar Apr 01 '22 08:04 fredericdelordm

Hi @chrs-myrs,

I'm not sure I understand your issue. The current Readme and docs state that $ResetTimeTimestamp represents the time in unix timestamp WHEN the number of allowed calls in this time interval will be reset , and NOT the number of milliseconds until the limit reset.

Could you please clarify?

Thanks!

iulian03 avatar Jan 25 '23 08:01 iulian03