Constructor
new WebhookClient(opt) → {WebhookClient}
Creates a Webhook client that can be used to trigger the jobs at the endpoint.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | Options for the Webhook client. Properties
|
- Source:
Returns:
- The created client.
- Type
- WebhookClient
Methods
(async) trigger(data)
Sends the request.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
string | Data to send within the request body. |
- Source: