WorkOS PHP SDK

CreateWebhookEndpoint
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$endpointUrl  : string
The HTTPS URL where webhooks will be sent.
$events  : array<string|int, CreateWebhookEndpointEvents>
The events that the Webhook Endpoint is subscribed to.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $endpointUrl, array<string|int, mixed> $events) : mixed
Parameters
$endpointUrl : string
$events : array<string|int, mixed>

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results