ApifyClient.API.Tasks.Webhooks (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoint related to api/tasks/webhooks

Summary

Functions

Get list of Actor task's webhooks

Types

list_200_json_resp()

@type list_200_json_resp() :: %{data: list_200_json_resp_data()}

list_200_json_resp_data()

@type list_200_json_resp_data() :: %{
  count: integer() | nil,
  desc: boolean() | nil,
  items: [ApifyClient.Schemas.WebhookResource.t()] | nil,
  limit: integer() | nil,
  offset: integer() | nil,
  total: integer() | nil
}

Functions

list(actor_task_id, opts \\ [])

@spec list(actor_task_id :: String.t(), opts :: keyword()) ::
  {:ok, list_200_json_resp_data()} | {:error, ApifyClient.Error.t()}

Get list of Actor task's webhooks

Gets the list of webhooks of a specific Actor task. The response is a JSON with the list of objects, where each object contains basic information about a single webhook.

The endpoint supports pagination using the limit and offset parameters and it will not return more than 1000 records.

By default, the records are sorted by the createdAt field in ascending order, to sort the records in descending order, use the desc=1 parameter.

Options

  • offset: Number of items that should be skipped at the start. The default value is 0.

  • limit: Maximum number of items to return. The default value as well as the maximum is 1000.

  • desc: If true or 1 then the objects are sorted by the createdAt field in descending order. By default, they are sorted in ascending order.