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

Batch Mode, sending multiple messages to multiple channels #98

Closed
carbontwelve opened this issue Mar 24, 2021 · 1 comment
Closed

Batch Mode, sending multiple messages to multiple channels #98

carbontwelve opened this issue Mar 24, 2021 · 1 comment

Comments

@carbontwelve
Copy link

carbontwelve commented Mar 24, 2021

I am aware that batch message sending is still a "beta" feature of the REST api, and am also aware that this library does current'y seem to support usage of batch mode when sending multiple messages to the same channel.

However it would be very useful if it provided a batch helper for sending different messages to different channels all within one Api call.

┆Issue is synchronized with this Jira Uncategorised by Unito

@owenpearson
Copy link
Member

Hi @carbontwelve. You can send different messages to different channels in a batch publish by sending an array of BatchSpec objects in the request body. See the "Using multiple BatchSpec objects in an array" section here. I hope this helps.

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

No branches or pull requests

2 participants