Closed swisstechguy closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
Hi @swisstechuy, thank you very much ! Did you test it ? Everything is working well, included other endpoints ?
Thanks !
Hi @redouane59 , yes I tested quite a few endpoints. All worked well. But I don't have a test for calling ALL endpoints. The way I enhanced the rate limit should work for all endpoints.
fixed the issue with negative sleep times and improves rate limit by reading x-rate-limit-remaining header. added sleep for calls to /2/tweets/search/all within less than 1s to be compliant with the rate limit of this API (max 1 request per second)