Skip to content

katana_public_api_client.api.webhook.get_all_webhooks

katana_public_api_client.api.webhook.get_all_webhooks

Classes

Functions

asyncio(*, client, ids=UNSET, url_query=UNSET, enabled=UNSET, limit=UNSET, page=UNSET) async

List all webhooks

Returns a list of webhooks you've previously created. The entries are returned in a sorted order, with the most recent ones appearing first.

Parameters:

  • ids (list[int] | Unset, default: UNSET ) –
  • url_query (str | Unset, default: UNSET ) –
  • enabled (bool | Unset, default: UNSET ) –
  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook/get_all_webhooks.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    ids: list[int] | Unset = UNSET,
    url_query: str | Unset = UNSET,
    enabled: bool | Unset = UNSET,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
) -> ErrorResponse | WebhookListResponse | None:
    """List all webhooks

     Returns a list of webhooks you've previously created. The entries are returned in a sorted order,
        with the most recent ones appearing first.

    Args:
        ids (list[int] | Unset):
        url_query (str | Unset):
        enabled (bool | Unset):
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        ErrorResponse | WebhookListResponse
    """

    return (
        await asyncio_detailed(
            client=client,
            ids=ids,
            url_query=url_query,
            enabled=enabled,
            limit=limit,
            page=page,
        )
    ).parsed

asyncio_detailed(*, client, ids=UNSET, url_query=UNSET, enabled=UNSET, limit=UNSET, page=UNSET) async

List all webhooks

Returns a list of webhooks you've previously created. The entries are returned in a sorted order, with the most recent ones appearing first.

Parameters:

  • ids (list[int] | Unset, default: UNSET ) –
  • url_query (str | Unset, default: UNSET ) –
  • enabled (bool | Unset, default: UNSET ) –
  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook/get_all_webhooks.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    ids: list[int] | Unset = UNSET,
    url_query: str | Unset = UNSET,
    enabled: bool | Unset = UNSET,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
) -> Response[ErrorResponse | WebhookListResponse]:
    """List all webhooks

     Returns a list of webhooks you've previously created. The entries are returned in a sorted order,
        with the most recent ones appearing first.

    Args:
        ids (list[int] | Unset):
        url_query (str | Unset):
        enabled (bool | Unset):
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[ErrorResponse | WebhookListResponse]
    """

    kwargs = _get_kwargs(
        ids=ids,
        url_query=url_query,
        enabled=enabled,
        limit=limit,
        page=page,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client, ids=UNSET, url_query=UNSET, enabled=UNSET, limit=UNSET, page=UNSET)

List all webhooks

Returns a list of webhooks you've previously created. The entries are returned in a sorted order, with the most recent ones appearing first.

Parameters:

  • ids (list[int] | Unset, default: UNSET ) –
  • url_query (str | Unset, default: UNSET ) –
  • enabled (bool | Unset, default: UNSET ) –
  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook/get_all_webhooks.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    ids: list[int] | Unset = UNSET,
    url_query: str | Unset = UNSET,
    enabled: bool | Unset = UNSET,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
) -> ErrorResponse | WebhookListResponse | None:
    """List all webhooks

     Returns a list of webhooks you've previously created. The entries are returned in a sorted order,
        with the most recent ones appearing first.

    Args:
        ids (list[int] | Unset):
        url_query (str | Unset):
        enabled (bool | Unset):
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        ErrorResponse | WebhookListResponse
    """

    return sync_detailed(
        client=client,
        ids=ids,
        url_query=url_query,
        enabled=enabled,
        limit=limit,
        page=page,
    ).parsed

sync_detailed(*, client, ids=UNSET, url_query=UNSET, enabled=UNSET, limit=UNSET, page=UNSET)

List all webhooks

Returns a list of webhooks you've previously created. The entries are returned in a sorted order, with the most recent ones appearing first.

Parameters:

  • ids (list[int] | Unset, default: UNSET ) –
  • url_query (str | Unset, default: UNSET ) –
  • enabled (bool | Unset, default: UNSET ) –
  • limit (int | Unset, default: UNSET ) –

    Default: 50.

  • page (int | Unset, default: UNSET ) –

    Default: 1.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/webhook/get_all_webhooks.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    ids: list[int] | Unset = UNSET,
    url_query: str | Unset = UNSET,
    enabled: bool | Unset = UNSET,
    limit: int | Unset = UNSET,
    page: int | Unset = UNSET,
) -> Response[ErrorResponse | WebhookListResponse]:
    """List all webhooks

     Returns a list of webhooks you've previously created. The entries are returned in a sorted order,
        with the most recent ones appearing first.

    Args:
        ids (list[int] | Unset):
        url_query (str | Unset):
        enabled (bool | Unset):
        limit (int | Unset):  Default: 50.
        page (int | Unset):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[ErrorResponse | WebhookListResponse]
    """

    kwargs = _get_kwargs(
        ids=ids,
        url_query=url_query,
        enabled=enabled,
        limit=limit,
        page=page,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)