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

Support for batching requests #128

Open
agrue opened this issue Apr 27, 2019 · 0 comments
Open

Support for batching requests #128

agrue opened this issue Apr 27, 2019 · 0 comments

Comments

@agrue
Copy link

agrue commented Apr 27, 2019

Some Google APIs support a batch endpoint that lets you combine multiple API calls into a single HTTP request. The specific one I'm interested in is Gmail (https://developers.google.com/gmail/api/guides/batch) though others support it too (e.g. Drive: https://developers.google.com/drive/api/v3/batch)

AFAICT the library doesn't currently support this. I've started taking a look at this myself; the sort of API I have in mind would automatically give you the instance GoogleRequest a => GoogleRequest (Batch a) (with Batch a being some kind of wrapper over multiple a). But the current implementation doesn't support this easily; to give one example, the response parsers in GClient can't be easily combined into a batch parser because they consume all their input.

Anyway, I'm sure this is possible with enough work, but I thought I should post about it here in case you have your own ideas about how to do this. Cheers!

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