WhatsAppWebhookVerifier
Table of Contents
Properties
-
$appSecret
: string
-
$verifyToken
: string
Methods
-
__construct()
: mixed
-
handleVerificationChallenge()
: string|null
-
verifySignature()
: bool
-
verifyWebhookSignature()
: void
$appSecret
read-only
private
string
$appSecret
$verifyToken
read-only
private
string
$verifyToken
__construct()
public
__construct(string $appSecret, string $verifyToken) : mixed
Parameters
-
$appSecret
: string
-
-
$verifyToken
: string
-
handleVerificationChallenge()
public
handleVerificationChallenge(ServerRequestInterface $request) : string|null
Parameters
-
$request
: ServerRequestInterface
-
Return values
string|null
verifySignature()
public
verifySignature(string $body, string $signature) : bool
Parameters
-
$body
: string
-
-
$signature
: string
-
verifyWebhookSignature()
public
verifyWebhookSignature(ServerRequestInterface $request, string $body) : void
Parameters
-
$request
: ServerRequestInterface
-
-
$body
: string
-