WebhookCollectionClient
Hierarchy
- ResourceCollectionClient
- WebhookCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new webhook.
Parameters
optionalwebhook: WebhookUpdateData
The webhook data.
Returns Promise<Webhook>
The created webhook object.
list
Lists all Webhooks.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: WebhookCollectionListOptions = {}
Pagination and sorting options.
Returns PaginatedIterator<Omit<Webhook, payloadTemplate | headersTemplate>>
A paginated iterator of webhooks.
Client for managing the collection of Webhooks.
Webhooks allow you to receive notifications when specific events occur in your Actors or tasks. This client provides methods to list and create webhooks for specific Actors or tasks.
https://docs.apify.com/platform/integrations/webhooks