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

Access headers to get 'X-DayLimit-Remaining' #289

Open
Zylatis opened this issue Mar 23, 2020 · 1 comment
Open

Access headers to get 'X-DayLimit-Remaining' #289

Zylatis opened this issue Mar 23, 2020 · 1 comment

Comments

@Zylatis
Copy link

Zylatis commented Mar 23, 2020

According to the Xero docs the remaining API call limit is returned in this header, is there a way to get this for each set of requests the module is using? For example i am currently using contact.get()

Also a related question which I can't seem to answer myself by just looking at the code: if i do something like contacts.all() is that a single request or is that going to first do a lookup of all the contact ids and then do individual requests?

Basically what I'm after is a batch of data which is the outstanding balance for each contact.

@Zylatis
Copy link
Author

Zylatis commented Mar 23, 2020

Ah I see actually the 'since' does what I want for the most part for the 2nd query, however I'd still like to understand if single queries are being made and how to obtain the headers after a response is received.

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

No branches or pull requests

1 participant