Meilisearch PHP | Documentation

CreateWebhookQuery
in package

FinalYes
Tags
since

Meilisearch v1.17.0

Table of Contents

Properties

$headers  : array<string|int, mixed>
$url  : string

Methods

__construct()  : mixed
toArray()  : array{url: non-empty-string, headers?: array}
Builds the request body. `headers` is omitted when no header was given.

Properties

Methods

__construct()

public __construct(non-empty-string $url[, array<non-empty-string, string> $headers = [] ]) : mixed
Parameters
$url : non-empty-string

the URL Meilisearch notifies when a task finishes

$headers : array<non-empty-string, string> = []

headers sent with every webhook request

toArray()

Builds the request body. `headers` is omitted when no header was given.

public toArray() : array{url: non-empty-string, headers?: array}
Return values
array{url: non-empty-string, headers?: array}
On this page

Search results