WhatsApp and Chatwoot

MessageTemplateParser
in package

FinalYes

Maps the association between a message template and a notification into the WhatsApp request body required to send the message to the API.

Knows the rules of the API.

Tags
see
https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages
since
1.0.0

Table of Contents

Methods

parse()  : array<string|int, mixed>

Methods

parse()

public final parse(array<string|int, mixed> $components, array<string|int, mixed> $notifParams) : array<string|int, mixed>
Parameters
$components : array<string|int, mixed>

the association between the notification parameters and the message template.

$notifParams : array<string|int, mixed>

the notification parameters, containing a callback for fetching the parameter value.

Tags
since
3.0.0
Return values
array<string|int, mixed>

        
On this page

Search results