Mangopay/mangopay2-php-sdk

Docs misleading for Rate Limiting

chrs-myrs opened this issue · 2 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 😆

Hello @chrs-myrs,

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

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!