bootdesk/chat-sdk

HandlesBatchedWebhooks

Table of Contents

Methods

parseBatchedWebhook()  : array<string|int, WebhookEvent>
Parse ALL events from a potentially-batched webhook payload.

Methods

parseBatchedWebhook()

Parse ALL events from a potentially-batched webhook payload.

public parseBatchedWebhook(ServerRequestInterface $request) : array<string|int, WebhookEvent>

Unlike the individual parseXxx() methods which return on the first match, this method iterates every entry/event and returns all of them for the Chat to dispatch individually.

Parameters
$request : ServerRequestInterface
Return values
array<string|int, WebhookEvent>
On this page

Search results