Hello.
We're using webhooks to stream some event data to another web app. hosted by our company. When creating a webhook, I see the explanation on "post multiple events in JSON array". It says,
"Post multiple events at a time to the webhook in a JSON array instead of posting events individually. Your code should be prepared to handle both multiple and single events."
My question is, when there's a single event, should the server expect a single JSON object in request body, or should it expect an array with just a single event object in it?
Answer by Citrus Yan · Sep 16, 2019 at 05:09 AM
Hi,
First thing you need to know is, batching is required for all new webhooks and cannot be disabled once enabled if you checked “Post multiple events in JSON array” for your Webhooks configuration. Once your webhook events are batched, your sever should expect an array with just a single event object in it when there’s a single event.
How to queue up failed cloudscript executions triggered from PlayStream events? 2 Answers
Webhook sends data multiple times to a google apps script web app endpoint 1 Answer
PlayStream WebHook not sending title events 1 Answer
Dynamic tokens in webhooks 1 Answer
Photon PathEvent Webhook getting triggered multiple times? 2 Answers