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

Bulk sending messages in single API call #183

Open
adamcooke opened this issue May 23, 2017 · 1 comment
Open

Bulk sending messages in single API call #183

adamcooke opened this issue May 23, 2017 · 1 comment

Comments

@adamcooke
Copy link
Contributor

It would be good to send multiple messages to the API in a single HTTP request. The current send/message and send/raw methods are designed for sending a single method.

A new method (or methods) will be needed for this purpose.

In theory, the API should simply accept an array of hashes containing the params that would normally be passed to the send/message or send/raw methods. It should then go through this array and compile a result hash that is the same format of that in the single messages above.

@alexroosenstein
Copy link

Could the code I submitted be used as basis, removing the to parameter, and give it a different API endpoint?

In my opinion it should be possible to define global parameters (e.g. subject, from, html body), which can be appended/overwritten with per-recipient parameters.

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

No branches or pull requests

2 participants