Skip to content

Changelog

thingiverse.api.changelog

Contains endpoint functions for accessing the API

get_changelogs

asyncio(*, client) async

Get changelogs

Raises:

Type Description
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:

Type Description
list[ChangelogSchema] | None

list[ChangelogSchema]

Source code in thingiverse/api/changelog/get_changelogs.py
async def asyncio(
    *,
    client: AuthenticatedClient,
) -> list[ChangelogSchema] | None:
    """Get changelogs

    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:
        list[ChangelogSchema]
    """

    return (
        await asyncio_detailed(
            client=client,
        )
    ).parsed

asyncio_detailed(*, client) async

Get changelogs

Raises:

Type Description
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:

Type Description
Response[list[ChangelogSchema]]

Response[list[ChangelogSchema]]

Source code in thingiverse/api/changelog/get_changelogs.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[list[ChangelogSchema]]:
    """Get changelogs

    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[list[ChangelogSchema]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

sync(*, client)

Get changelogs

Raises:

Type Description
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:

Type Description
list[ChangelogSchema] | None

list[ChangelogSchema]

Source code in thingiverse/api/changelog/get_changelogs.py
def sync(
    *,
    client: AuthenticatedClient,
) -> list[ChangelogSchema] | None:
    """Get changelogs

    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:
        list[ChangelogSchema]
    """

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed(*, client)

Get changelogs

Raises:

Type Description
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:

Type Description
Response[list[ChangelogSchema]]

Response[list[ChangelogSchema]]

Source code in thingiverse/api/changelog/get_changelogs.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
) -> Response[list[ChangelogSchema]]:
    """Get changelogs

    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[list[ChangelogSchema]]
    """

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)