WebhookClient
Hierarchy
- ResourceClient
- WebhookClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
delete
Deletes the webhook.
Returns Promise<void>
dispatches
Returns a client for the dispatches of this webhook.
Returns WebhookDispatchCollectionClient
A client for the webhook's dispatches.
get
Retrieves the webhook.
Returns Promise<undefined | Webhook>
The webhook object, or
undefinedif it does not exist.
test
Tests the webhook by dispatching a test event.
Returns Promise<undefined | WebhookDispatch>
The webhook dispatch object, or
undefinedif the test fails.
update
Updates the webhook with the specified fields.
Parameters
newFields: WebhookUpdateData
Fields to update.
Returns Promise<Webhook>
The updated webhook object.
Client for managing a specific webhook.
Webhooks allow you to receive notifications when specific events occur in your Actors or tasks. This client provides methods to get, update, delete, and test webhooks, as well as retrieve webhook dispatches.
https://docs.apify.com/platform/integrations/webhooks