WebhookClient
Hierarchy
- ResourceClient
- WebhookClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
delete
Deletes the webhook.
Returns Promise<void>
See more at https://docs.apify.com/api/v2/webhook-delete
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.See more at https://docs.apify.com/api/v2/webhook-get
test
Tests the webhook by dispatching a test event.
Returns Promise<undefined | WebhookDispatch>
The webhook dispatch object, or
undefinedif the test fails.See more at https://docs.apify.com/api/v2/webhook-test-post
update
Updates the webhook with the specified fields.
Parameters
newFields: WebhookUpdateData
Fields to update.
Returns Promise<Webhook>
The updated webhook object.
See more at https://docs.apify.com/api/v2/webhook-put
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.