Skip to content

Category

thingiverse.api.category

Contains endpoint functions for accessing the API

get_categories

asyncio(*, client, page=UNSET, per_page=UNSET) async

List of root categories. Does not list any sub categories.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item] | None

GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]

Source code in thingiverse/api/category/get_categories.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesResponse401
    | GetCategoriesResponse403
    | GetCategoriesResponse404
    | list[GetCategoriesResponse200Item]
    | None
):
    """List of root categories. Does not list any sub categories.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]
    """

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

asyncio_detailed(*, client, page=UNSET, per_page=UNSET) async

List of root categories. Does not list any sub categories.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]

Response[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]

Source code in thingiverse/api/category/get_categories.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesResponse401
    | GetCategoriesResponse403
    | GetCategoriesResponse404
    | list[GetCategoriesResponse200Item]
]:
    """List of root categories. Does not list any sub categories.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]
    """

    kwargs = _get_kwargs(
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, page=UNSET, per_page=UNSET)

List of root categories. Does not list any sub categories.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item] | None

GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]

Source code in thingiverse/api/category/get_categories.py
def sync(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesResponse401
    | GetCategoriesResponse403
    | GetCategoriesResponse404
    | list[GetCategoriesResponse200Item]
    | None
):
    """List of root categories. Does not list any sub categories.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]
    """

    return sync_detailed(
        client=client,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(*, client, page=UNSET, per_page=UNSET)

List of root categories. Does not list any sub categories.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]

Response[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]

Source code in thingiverse/api/category/get_categories.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesResponse401
    | GetCategoriesResponse403
    | GetCategoriesResponse404
    | list[GetCategoriesResponse200Item]
]:
    """List of root categories. Does not list any sub categories.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesResponse401 | GetCategoriesResponse403 | GetCategoriesResponse404 | list[GetCategoriesResponse200Item]]
    """

    kwargs = _get_kwargs(
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

get_categories_slug

asyncio(slug, *, client) async

Get category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required

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
GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404 | None

GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404

Source code in thingiverse/api/category/get_categories_slug.py
async def asyncio(
    slug: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetCategoriesSlugResponse200
    | GetCategoriesSlugResponse401
    | GetCategoriesSlugResponse403
    | GetCategoriesSlugResponse404
    | None
):
    """Get category by slug

    Args:
        slug (str):  Example: art.

    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:
        GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404
    """

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

asyncio_detailed(slug, *, client) async

Get category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required

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[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]

Response[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]

Source code in thingiverse/api/category/get_categories_slug.py
async def asyncio_detailed(
    slug: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCategoriesSlugResponse200
    | GetCategoriesSlugResponse401
    | GetCategoriesSlugResponse403
    | GetCategoriesSlugResponse404
]:
    """Get category by slug

    Args:
        slug (str):  Example: art.

    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[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]
    """

    kwargs = _get_kwargs(
        slug=slug,
    )

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

    return _build_response(client=client, response=response)

sync(slug, *, client)

Get category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required

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
GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404 | None

GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404

Source code in thingiverse/api/category/get_categories_slug.py
def sync(
    slug: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetCategoriesSlugResponse200
    | GetCategoriesSlugResponse401
    | GetCategoriesSlugResponse403
    | GetCategoriesSlugResponse404
    | None
):
    """Get category by slug

    Args:
        slug (str):  Example: art.

    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:
        GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404
    """

    return sync_detailed(
        slug=slug,
        client=client,
    ).parsed

sync_detailed(slug, *, client)

Get category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required

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[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]

Response[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]

Source code in thingiverse/api/category/get_categories_slug.py
def sync_detailed(
    slug: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetCategoriesSlugResponse200
    | GetCategoriesSlugResponse401
    | GetCategoriesSlugResponse403
    | GetCategoriesSlugResponse404
]:
    """Get category by slug

    Args:
        slug (str):  Example: art.

    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[GetCategoriesSlugResponse200 | GetCategoriesSlugResponse401 | GetCategoriesSlugResponse403 | GetCategoriesSlugResponse404]
    """

    kwargs = _get_kwargs(
        slug=slug,
    )

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

    return _build_response(client=client, response=response)

get_categories_slug_things

asyncio(slug, *, client, page=UNSET, per_page=UNSET) async

Get list of things of the corresponding category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema] | None

GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/category/get_categories_slug_things.py
async def asyncio(
    slug: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesSlugThingsResponse401
    | GetCategoriesSlugThingsResponse403
    | GetCategoriesSlugThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get list of things of the corresponding category by slug

    Args:
        slug (str):  Example: art.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]
    """

    return (
        await asyncio_detailed(
            slug=slug,
            client=client,
            page=page,
            per_page=per_page,
        )
    ).parsed

asyncio_detailed(slug, *, client, page=UNSET, per_page=UNSET) async

Get list of things of the corresponding category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]

Response[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/category/get_categories_slug_things.py
async def asyncio_detailed(
    slug: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesSlugThingsResponse401
    | GetCategoriesSlugThingsResponse403
    | GetCategoriesSlugThingsResponse404
    | list[ThingSchema]
]:
    """Get list of things of the corresponding category by slug

    Args:
        slug (str):  Example: art.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        slug=slug,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(slug, *, client, page=UNSET, per_page=UNSET)

Get list of things of the corresponding category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema] | None

GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/category/get_categories_slug_things.py
def sync(
    slug: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesSlugThingsResponse401
    | GetCategoriesSlugThingsResponse403
    | GetCategoriesSlugThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get list of things of the corresponding category by slug

    Args:
        slug (str):  Example: art.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]
    """

    return sync_detailed(
        slug=slug,
        client=client,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(slug, *, client, page=UNSET, per_page=UNSET)

Get list of things of the corresponding category by slug

Parameters:

Name Type Description Default
slug str

Example: art.

required
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]

Response[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/category/get_categories_slug_things.py
def sync_detailed(
    slug: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesSlugThingsResponse401
    | GetCategoriesSlugThingsResponse403
    | GetCategoriesSlugThingsResponse404
    | list[ThingSchema]
]:
    """Get list of things of the corresponding category by slug

    Args:
        slug (str):  Example: art.
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesSlugThingsResponse401 | GetCategoriesSlugThingsResponse403 | GetCategoriesSlugThingsResponse404 | list[ThingSchema]]
    """

    kwargs = _get_kwargs(
        slug=slug,
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

get_categoriesreturncomplete

asyncio(*, client, page=UNSET, per_page=UNSET) async

List of root categories and their nested children.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item] | None

GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]

Source code in thingiverse/api/category/get_categoriesreturncomplete.py
async def asyncio(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesreturncompleteResponse401
    | GetCategoriesreturncompleteResponse403
    | GetCategoriesreturncompleteResponse404
    | list[GetCategoriesreturncompleteResponse200Item]
    | None
):
    """List of root categories and their nested children.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]
    """

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

asyncio_detailed(*, client, page=UNSET, per_page=UNSET) async

List of root categories and their nested children.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]

Response[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]

Source code in thingiverse/api/category/get_categoriesreturncomplete.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesreturncompleteResponse401
    | GetCategoriesreturncompleteResponse403
    | GetCategoriesreturncompleteResponse404
    | list[GetCategoriesreturncompleteResponse200Item]
]:
    """List of root categories and their nested children.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]
    """

    kwargs = _get_kwargs(
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, page=UNSET, per_page=UNSET)

List of root categories and their nested children.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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
GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item] | None

GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]

Source code in thingiverse/api/category/get_categoriesreturncomplete.py
def sync(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetCategoriesreturncompleteResponse401
    | GetCategoriesreturncompleteResponse403
    | GetCategoriesreturncompleteResponse404
    | list[GetCategoriesreturncompleteResponse200Item]
    | None
):
    """List of root categories and their nested children.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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:
        GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]
    """

    return sync_detailed(
        client=client,
        page=page,
        per_page=per_page,
    ).parsed

sync_detailed(*, client, page=UNSET, per_page=UNSET)

List of root categories and their nested children.

Parameters:

Name Type Description Default
page int | Unset

Example: 1.

UNSET
per_page int | Unset

Example: 30.

UNSET

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[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]

Response[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]

Source code in thingiverse/api/category/get_categoriesreturncomplete.py
def sync_detailed(
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetCategoriesreturncompleteResponse401
    | GetCategoriesreturncompleteResponse403
    | GetCategoriesreturncompleteResponse404
    | list[GetCategoriesreturncompleteResponse200Item]
]:
    """List of root categories and their nested children.

    Args:
        page (int | Unset):  Example: 1.
        per_page (int | Unset):  Example: 30.

    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[GetCategoriesreturncompleteResponse401 | GetCategoriesreturncompleteResponse403 | GetCategoriesreturncompleteResponse404 | list[GetCategoriesreturncompleteResponse200Item]]
    """

    kwargs = _get_kwargs(
        page=page,
        per_page=per_page,
    )

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

    return _build_response(client=client, response=response)