Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limit return #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

DeadlyEmbrace
Copy link
Contributor

Updated the Client class so all methods support returning the remaining requests before being rate limited.
Also added a switch, timeout and tolerance to allow multi retrievals to delay themselves when the remaining requests drop below the user defined tolerance.

The change will be invisible to existing users as the original methods were left intact, they call the new rate limit returning methods and discard the rate limit. By default the "ObeyRateLimit" switch is set to false so the original handling of the batch retrieval methods remain intact.

DeadlyEmbrace and others added 2 commits December 22, 2023 11:42
- Updated client with methods to return the rate limit after a request while keeping the original methods
- Added logic to stop retrieval in do-while loops if the rate limit was hit and the user chooses to obey rate limiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant