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=50, page=1) 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 (Union[Unset, list[int]], default: UNSET ) –
  • url_query (Union[Unset, str], default: UNSET ) –
  • enabled (Union[Unset, bool], default: UNSET ) –
  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    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: Unset | list[int] = UNSET,
    url_query: Unset | str = UNSET,
    enabled: Unset | bool = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> 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 (Union[Unset, list[int]]):
        url_query (Union[Unset, str]):
        enabled (Union[Unset, bool]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  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:
        Union[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=50, page=1) 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 (Union[Unset, list[int]], default: UNSET ) –
  • url_query (Union[Unset, str], default: UNSET ) –
  • enabled (Union[Unset, bool], default: UNSET ) –
  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    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: Unset | list[int] = UNSET,
    url_query: Unset | str = UNSET,
    enabled: Unset | bool = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> 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 (Union[Unset, list[int]]):
        url_query (Union[Unset, str]):
        enabled (Union[Unset, bool]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  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[Union[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=50, page=1)

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 (Union[Unset, list[int]], default: UNSET ) –
  • url_query (Union[Unset, str], default: UNSET ) –
  • enabled (Union[Unset, bool], default: UNSET ) –
  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    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: Unset | list[int] = UNSET,
    url_query: Unset | str = UNSET,
    enabled: Unset | bool = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> 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 (Union[Unset, list[int]]):
        url_query (Union[Unset, str]):
        enabled (Union[Unset, bool]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  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:
        Union[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=50, page=1)

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 (Union[Unset, list[int]], default: UNSET ) –
  • url_query (Union[Unset, str], default: UNSET ) –
  • enabled (Union[Unset, bool], default: UNSET ) –
  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    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: Unset | list[int] = UNSET,
    url_query: Unset | str = UNSET,
    enabled: Unset | bool = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> 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 (Union[Unset, list[int]]):
        url_query (Union[Unset, str]):
        enabled (Union[Unset, bool]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  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[Union[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)