Skip to content

Handling Xero's rate limits #5

Description

@rikkipitt

Hi @minimul,

Xero has API rate limiting. Specifically,

  • Minute Limit: 60 calls in a rolling 60 second window
  • Daily Limit: 5000 calls in a rolling 24 hour window

Xeroizer allows us to sleep for a number of seconds if the request fails in response to the OAuth::RateLimitExceeded error.

See here for a reference: https://github.com/waynerobinson/xeroizer/blob/master/lib/xeroizer/http.rb#L133

Are you open to adding something similar in? Am I correct there's something similar (in terms of retrying) in your qbo-api?

Cheers,
Rikki

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions