Skip to content

User

thingiverse.api.user

Contains endpoint functions for accessing the API

delete_users_username

asyncio(username, *, client) async

Soft delete a user's account

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404 | None

DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404

Source code in thingiverse/api/user/delete_users_username.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteUsersUsernameResponse200
    | DeleteUsersUsernameResponse401
    | DeleteUsersUsernameResponse403
    | DeleteUsersUsernameResponse404
    | None
):
    """Soft delete a user's account

    Args:
        username (str):  Example: thingiverse.

    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:
        DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404
    """

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

asyncio_detailed(username, *, client) async

Soft delete a user's account

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]

Response[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]

Source code in thingiverse/api/user/delete_users_username.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteUsersUsernameResponse200
    | DeleteUsersUsernameResponse401
    | DeleteUsersUsernameResponse403
    | DeleteUsersUsernameResponse404
]:
    """Soft delete a user's account

    Args:
        username (str):  Example: thingiverse.

    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[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Soft delete a user's account

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404 | None

DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404

Source code in thingiverse/api/user/delete_users_username.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteUsersUsernameResponse200
    | DeleteUsersUsernameResponse401
    | DeleteUsersUsernameResponse403
    | DeleteUsersUsernameResponse404
    | None
):
    """Soft delete a user's account

    Args:
        username (str):  Example: thingiverse.

    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:
        DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404
    """

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

sync_detailed(username, *, client)

Soft delete a user's account

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]

Response[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]

Source code in thingiverse/api/user/delete_users_username.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteUsersUsernameResponse200
    | DeleteUsersUsernameResponse401
    | DeleteUsersUsernameResponse403
    | DeleteUsersUsernameResponse404
]:
    """Soft delete a user's account

    Args:
        username (str):  Example: thingiverse.

    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[DeleteUsersUsernameResponse200 | DeleteUsersUsernameResponse401 | DeleteUsersUsernameResponse403 | DeleteUsersUsernameResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

delete_users_username_followers

asyncio(username, *, client) async

Unfollow an user

Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404 | None

DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404

Source code in thingiverse/api/user/delete_users_username_followers.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteUsersUsernameFollowersResponse200
    | DeleteUsersUsernameFollowersResponse401
    | DeleteUsersUsernameFollowersResponse403
    | DeleteUsersUsernameFollowersResponse404
    | None
):
    """Unfollow an user

     Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

    Args:
        username (str):  Example: thingiverse.

    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:
        DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404
    """

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

asyncio_detailed(username, *, client) async

Unfollow an user

Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]

Response[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]

Source code in thingiverse/api/user/delete_users_username_followers.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteUsersUsernameFollowersResponse200
    | DeleteUsersUsernameFollowersResponse401
    | DeleteUsersUsernameFollowersResponse403
    | DeleteUsersUsernameFollowersResponse404
]:
    """Unfollow an user

     Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

    Args:
        username (str):  Example: thingiverse.

    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[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Unfollow an user

Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404 | None

DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404

Source code in thingiverse/api/user/delete_users_username_followers.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    DeleteUsersUsernameFollowersResponse200
    | DeleteUsersUsernameFollowersResponse401
    | DeleteUsersUsernameFollowersResponse403
    | DeleteUsersUsernameFollowersResponse404
    | None
):
    """Unfollow an user

     Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

    Args:
        username (str):  Example: thingiverse.

    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:
        DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404
    """

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

sync_detailed(username, *, client)

Unfollow an user

Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]

Response[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]

Source code in thingiverse/api/user/delete_users_username_followers.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    DeleteUsersUsernameFollowersResponse200
    | DeleteUsersUsernameFollowersResponse401
    | DeleteUsersUsernameFollowersResponse403
    | DeleteUsersUsernameFollowersResponse404
]:
    """Unfollow an user

     Must use the DELETE method Result will be 404 Not Found if the user doesn't exist.

    Args:
        username (str):  Example: thingiverse.

    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[DeleteUsersUsernameFollowersResponse200 | DeleteUsersUsernameFollowersResponse401 | DeleteUsersUsernameFollowersResponse403 | DeleteUsersUsernameFollowersResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

get_users_username

asyncio(username, *, client) async

Get the specified user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema | None

GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema

Source code in thingiverse/api/user/get_users_username.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameResponse401
    | GetUsersUsernameResponse403
    | GetUsersUsernameResponse404
    | UserSchema
    | None
):
    """Get the specified user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema
    """

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

asyncio_detailed(username, *, client) async

Get the specified user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]

Response[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]

Source code in thingiverse/api/user/get_users_username.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameResponse401
    | GetUsersUsernameResponse403
    | GetUsersUsernameResponse404
    | UserSchema
]:
    """Get the specified user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get the specified user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema | None

GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema

Source code in thingiverse/api/user/get_users_username.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameResponse401
    | GetUsersUsernameResponse403
    | GetUsersUsernameResponse404
    | UserSchema
    | None
):
    """Get the specified user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema
    """

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

sync_detailed(username, *, client)

Get the specified user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]

Response[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]

Source code in thingiverse/api/user/get_users_username.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameResponse401
    | GetUsersUsernameResponse403
    | GetUsersUsernameResponse404
    | UserSchema
]:
    """Get the specified user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameResponse401 | GetUsersUsernameResponse403 | GetUsersUsernameResponse404 | UserSchema]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

get_users_username_all_collected_things

asyncio(username, *, client) async

Get latest downloaded things by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404 | None

GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404

Source code in thingiverse/api/user/get_users_username_all_collected_things.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameAllCollectedThingsResponse200
    | GetUsersUsernameAllCollectedThingsResponse401
    | GetUsersUsernameAllCollectedThingsResponse403
    | GetUsersUsernameAllCollectedThingsResponse404
    | None
):
    """Get latest downloaded things by user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404
    """

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

asyncio_detailed(username, *, client) async

Get latest downloaded things by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]

Response[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]

Source code in thingiverse/api/user/get_users_username_all_collected_things.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameAllCollectedThingsResponse200
    | GetUsersUsernameAllCollectedThingsResponse401
    | GetUsersUsernameAllCollectedThingsResponse403
    | GetUsersUsernameAllCollectedThingsResponse404
]:
    """Get latest downloaded things by user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get latest downloaded things by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404 | None

GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404

Source code in thingiverse/api/user/get_users_username_all_collected_things.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameAllCollectedThingsResponse200
    | GetUsersUsernameAllCollectedThingsResponse401
    | GetUsersUsernameAllCollectedThingsResponse403
    | GetUsersUsernameAllCollectedThingsResponse404
    | None
):
    """Get latest downloaded things by user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404
    """

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

sync_detailed(username, *, client)

Get latest downloaded things by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]

Response[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]

Source code in thingiverse/api/user/get_users_username_all_collected_things.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameAllCollectedThingsResponse200
    | GetUsersUsernameAllCollectedThingsResponse401
    | GetUsersUsernameAllCollectedThingsResponse403
    | GetUsersUsernameAllCollectedThingsResponse404
]:
    """Get latest downloaded things by user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameAllCollectedThingsResponse200 | GetUsersUsernameAllCollectedThingsResponse401 | GetUsersUsernameAllCollectedThingsResponse403 | GetUsersUsernameAllCollectedThingsResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

get_users_username_collections

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item] | None

GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]

Source code in thingiverse/api/user/get_users_username_collections.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameCollectionsResponse401
    | GetUsersUsernameCollectionsResponse403
    | GetUsersUsernameCollectionsResponse404
    | list[GetUsersUsernameCollectionsResponse200Item]
    | None
):
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]
    """

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

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]

Response[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]

Source code in thingiverse/api/user/get_users_username_collections.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameCollectionsResponse401
    | GetUsersUsernameCollectionsResponse403
    | GetUsersUsernameCollectionsResponse404
    | list[GetUsersUsernameCollectionsResponse200Item]
]:
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item] | None

GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]

Source code in thingiverse/api/user/get_users_username_collections.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameCollectionsResponse401
    | GetUsersUsernameCollectionsResponse403
    | GetUsersUsernameCollectionsResponse404
    | list[GetUsersUsernameCollectionsResponse200Item]
    | None
):
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]
    """

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

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]

Response[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]

Source code in thingiverse/api/user/get_users_username_collections.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameCollectionsResponse401
    | GetUsersUsernameCollectionsResponse403
    | GetUsersUsernameCollectionsResponse404
    | list[GetUsersUsernameCollectionsResponse200Item]
]:
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameCollectionsResponse401 | GetUsersUsernameCollectionsResponse403 | GetUsersUsernameCollectionsResponse404 | list[GetUsersUsernameCollectionsResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_copies

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item] | None

GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]

Source code in thingiverse/api/user/get_users_username_copies.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameCopiesResponse401
    | GetUsersUsernameCopiesResponse403
    | GetUsersUsernameCopiesResponse404
    | list[GetUsersUsernameCopiesResponse200Item]
    | None
):
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]
    """

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

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]

Response[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]

Source code in thingiverse/api/user/get_users_username_copies.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameCopiesResponse401
    | GetUsersUsernameCopiesResponse403
    | GetUsersUsernameCopiesResponse404
    | list[GetUsersUsernameCopiesResponse200Item]
]:
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item] | None

GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]

Source code in thingiverse/api/user/get_users_username_copies.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameCopiesResponse401
    | GetUsersUsernameCopiesResponse403
    | GetUsersUsernameCopiesResponse404
    | list[GetUsersUsernameCopiesResponse200Item]
    | None
):
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]
    """

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

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

Get latest copies by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]

Response[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]

Source code in thingiverse/api/user/get_users_username_copies.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameCopiesResponse401
    | GetUsersUsernameCopiesResponse403
    | GetUsersUsernameCopiesResponse404
    | list[GetUsersUsernameCopiesResponse200Item]
]:
    """Get latest copies by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameCopiesResponse401 | GetUsersUsernameCopiesResponse403 | GetUsersUsernameCopiesResponse404 | list[GetUsersUsernameCopiesResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_downloads

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

Get latest downloaded things by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema] | None

GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_downloads.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameDownloadsResponse401
    | GetUsersUsernameDownloadsResponse403
    | GetUsersUsernameDownloadsResponse404
    | list[ThingSchema]
    | None
):
    """Get latest downloaded things by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]
    """

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

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

Get latest downloaded things by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_downloads.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameDownloadsResponse401
    | GetUsersUsernameDownloadsResponse403
    | GetUsersUsernameDownloadsResponse404
    | list[ThingSchema]
]:
    """Get latest downloaded things by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get latest downloaded things by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema] | None

GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_downloads.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameDownloadsResponse401
    | GetUsersUsernameDownloadsResponse403
    | GetUsersUsernameDownloadsResponse404
    | list[ThingSchema]
    | None
):
    """Get latest downloaded things by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]
    """

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

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

Get latest downloaded things by user

If the user doesn't exist, result is 404 Not Found.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_downloads.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameDownloadsResponse401
    | GetUsersUsernameDownloadsResponse403
    | GetUsersUsernameDownloadsResponse404
    | list[ThingSchema]
]:
    """Get latest downloaded things by user

     If the user doesn't exist, result is 404 Not Found.

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameDownloadsResponse401 | GetUsersUsernameDownloadsResponse403 | GetUsersUsernameDownloadsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_event_count

asyncio(username, *, client, timestamp=UNSET) async

Get the count of events for user since the timestamp sent

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
timestamp str | Unset
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
GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404 | None

GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404

Source code in thingiverse/api/user/get_users_username_event_count.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    timestamp: str | Unset = UNSET,
) -> (
    GetUsersUsernameEventCountResponse200
    | GetUsersUsernameEventCountResponse401
    | GetUsersUsernameEventCountResponse403
    | GetUsersUsernameEventCountResponse404
    | None
):
    """Get the count of events for user since the timestamp sent

    Args:
        username (str):  Example: thingiverse.
        timestamp (str | Unset):

    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:
        GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404
    """

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

asyncio_detailed(username, *, client, timestamp=UNSET) async

Get the count of events for user since the timestamp sent

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
timestamp str | Unset
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[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]

Response[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]

Source code in thingiverse/api/user/get_users_username_event_count.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    timestamp: str | Unset = UNSET,
) -> Response[
    GetUsersUsernameEventCountResponse200
    | GetUsersUsernameEventCountResponse401
    | GetUsersUsernameEventCountResponse403
    | GetUsersUsernameEventCountResponse404
]:
    """Get the count of events for user since the timestamp sent

    Args:
        username (str):  Example: thingiverse.
        timestamp (str | Unset):

    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[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        timestamp=timestamp,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client, timestamp=UNSET)

Get the count of events for user since the timestamp sent

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
timestamp str | Unset
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
GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404 | None

GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404

Source code in thingiverse/api/user/get_users_username_event_count.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    timestamp: str | Unset = UNSET,
) -> (
    GetUsersUsernameEventCountResponse200
    | GetUsersUsernameEventCountResponse401
    | GetUsersUsernameEventCountResponse403
    | GetUsersUsernameEventCountResponse404
    | None
):
    """Get the count of events for user since the timestamp sent

    Args:
        username (str):  Example: thingiverse.
        timestamp (str | Unset):

    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:
        GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404
    """

    return sync_detailed(
        username=username,
        client=client,
        timestamp=timestamp,
    ).parsed

sync_detailed(username, *, client, timestamp=UNSET)

Get the count of events for user since the timestamp sent

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
timestamp str | Unset
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[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]

Response[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]

Source code in thingiverse/api/user/get_users_username_event_count.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    timestamp: str | Unset = UNSET,
) -> Response[
    GetUsersUsernameEventCountResponse200
    | GetUsersUsernameEventCountResponse401
    | GetUsersUsernameEventCountResponse403
    | GetUsersUsernameEventCountResponse404
]:
    """Get the count of events for user since the timestamp sent

    Args:
        username (str):  Example: thingiverse.
        timestamp (str | Unset):

    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[GetUsersUsernameEventCountResponse200 | GetUsersUsernameEventCountResponse401 | GetUsersUsernameEventCountResponse403 | GetUsersUsernameEventCountResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        timestamp=timestamp,
    )

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

    return _build_response(client=client, response=response)

get_users_username_favorites

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

Get favorites by user

If an authenticated user is requesting their own list of favorites, If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item] | None

GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]

Source code in thingiverse/api/user/get_users_username_favorites.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameFavoritesResponse401
    | GetUsersUsernameFavoritesResponse403
    | GetUsersUsernameFavoritesResponse404
    | list[GetUsersUsernameFavoritesResponse200Item]
    | None
):
    """Get favorites by user

     If an authenticated user is requesting their own list of favorites, If the user doesn't exist,
    result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]
    """

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

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

Get favorites by user

If an authenticated user is requesting their own list of favorites, If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]

Response[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]

Source code in thingiverse/api/user/get_users_username_favorites.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameFavoritesResponse401
    | GetUsersUsernameFavoritesResponse403
    | GetUsersUsernameFavoritesResponse404
    | list[GetUsersUsernameFavoritesResponse200Item]
]:
    """Get favorites by user

     If an authenticated user is requesting their own list of favorites, If the user doesn't exist,
    result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get favorites by user

If an authenticated user is requesting their own list of favorites, If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item] | None

GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]

Source code in thingiverse/api/user/get_users_username_favorites.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameFavoritesResponse401
    | GetUsersUsernameFavoritesResponse403
    | GetUsersUsernameFavoritesResponse404
    | list[GetUsersUsernameFavoritesResponse200Item]
    | None
):
    """Get favorites by user

     If an authenticated user is requesting their own list of favorites, If the user doesn't exist,
    result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]
    """

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

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

Get favorites by user

If an authenticated user is requesting their own list of favorites, If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]

Response[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]

Source code in thingiverse/api/user/get_users_username_favorites.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameFavoritesResponse401
    | GetUsersUsernameFavoritesResponse403
    | GetUsersUsernameFavoritesResponse404
    | list[GetUsersUsernameFavoritesResponse200Item]
]:
    """Get favorites by user

     If an authenticated user is requesting their own list of favorites, If the user doesn't exist,
    result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameFavoritesResponse401 | GetUsersUsernameFavoritesResponse403 | GetUsersUsernameFavoritesResponse404 | list[GetUsersUsernameFavoritesResponse200Item]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_followers

asyncio(username, *, client) async

Get followers

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2] | None

GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]

Source code in thingiverse/api/user/get_users_username_followers.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameFollowersResponse401
    | GetUsersUsernameFollowersResponse403
    | GetUsersUsernameFollowersResponse404
    | list[UserSummarySchema2]
    | None
):
    """Get followers

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]
    """

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

asyncio_detailed(username, *, client) async

Get followers

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]

Response[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]

Source code in thingiverse/api/user/get_users_username_followers.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameFollowersResponse401
    | GetUsersUsernameFollowersResponse403
    | GetUsersUsernameFollowersResponse404
    | list[UserSummarySchema2]
]:
    """Get followers

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get followers

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2] | None

GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]

Source code in thingiverse/api/user/get_users_username_followers.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameFollowersResponse401
    | GetUsersUsernameFollowersResponse403
    | GetUsersUsernameFollowersResponse404
    | list[UserSummarySchema2]
    | None
):
    """Get followers

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]
    """

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

sync_detailed(username, *, client)

Get followers

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]

Response[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]

Source code in thingiverse/api/user/get_users_username_followers.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameFollowersResponse401
    | GetUsersUsernameFollowersResponse403
    | GetUsersUsernameFollowersResponse404
    | list[UserSummarySchema2]
]:
    """Get followers

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameFollowersResponse401 | GetUsersUsernameFollowersResponse403 | GetUsersUsernameFollowersResponse404 | list[UserSummarySchema2]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

get_users_username_following

asyncio(username, *, client) async

Get array of users that requested user is following

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2] | None

GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]

Source code in thingiverse/api/user/get_users_username_following.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameFollowingResponse401
    | GetUsersUsernameFollowingResponse403
    | GetUsersUsernameFollowingResponse404
    | list[UserSummarySchema2]
    | None
):
    """Get array of users that requested user is following

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]
    """

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

asyncio_detailed(username, *, client) async

Get array of users that requested user is following

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]

Response[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]

Source code in thingiverse/api/user/get_users_username_following.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameFollowingResponse401
    | GetUsersUsernameFollowingResponse403
    | GetUsersUsernameFollowingResponse404
    | list[UserSummarySchema2]
]:
    """Get array of users that requested user is following

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get array of users that requested user is following

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2] | None

GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]

Source code in thingiverse/api/user/get_users_username_following.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameFollowingResponse401
    | GetUsersUsernameFollowingResponse403
    | GetUsersUsernameFollowingResponse404
    | list[UserSummarySchema2]
    | None
):
    """Get array of users that requested user is following

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]
    """

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

sync_detailed(username, *, client)

Get array of users that requested user is following

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]

Response[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]

Source code in thingiverse/api/user/get_users_username_following.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameFollowingResponse401
    | GetUsersUsernameFollowingResponse403
    | GetUsersUsernameFollowingResponse404
    | list[UserSummarySchema2]
]:
    """Get array of users that requested user is following

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameFollowingResponse401 | GetUsersUsernameFollowingResponse403 | GetUsersUsernameFollowingResponse404 | list[UserSummarySchema2]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

get_users_username_likes

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

Get things liked by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema] | None

GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_likes.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameLikesResponse401
    | GetUsersUsernameLikesResponse403
    | GetUsersUsernameLikesResponse404
    | list[ThingSchema]
    | None
):
    """Get things liked by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]
    """

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

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

Get things liked by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]

Response[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_likes.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameLikesResponse401
    | GetUsersUsernameLikesResponse403
    | GetUsersUsernameLikesResponse404
    | list[ThingSchema]
]:
    """Get things liked by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get things liked by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema] | None

GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_likes.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameLikesResponse401
    | GetUsersUsernameLikesResponse403
    | GetUsersUsernameLikesResponse404
    | list[ThingSchema]
    | None
):
    """Get things liked by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]
    """

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

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

Get things liked by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]

Response[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_likes.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameLikesResponse401
    | GetUsersUsernameLikesResponse403
    | GetUsersUsernameLikesResponse404
    | list[ThingSchema]
]:
    """Get things liked by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameLikesResponse401 | GetUsersUsernameLikesResponse403 | GetUsersUsernameLikesResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_likesids

asyncio(username, *, client) async

Get all things id's like by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int] | None

GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]

Source code in thingiverse/api/user/get_users_username_likesids.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameLikesidsResponse401
    | GetUsersUsernameLikesidsResponse403
    | GetUsersUsernameLikesidsResponse404
    | list[int]
    | None
):
    """Get all things id's like by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]
    """

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

asyncio_detailed(username, *, client) async

Get all things id's like by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]

Response[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]

Source code in thingiverse/api/user/get_users_username_likesids.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameLikesidsResponse401
    | GetUsersUsernameLikesidsResponse403
    | GetUsersUsernameLikesidsResponse404
    | list[int]
]:
    """Get all things id's like by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get all things id's like by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int] | None

GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]

Source code in thingiverse/api/user/get_users_username_likesids.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameLikesidsResponse401
    | GetUsersUsernameLikesidsResponse403
    | GetUsersUsernameLikesidsResponse404
    | list[int]
    | None
):
    """Get all things id's like by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]
    """

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

sync_detailed(username, *, client)

Get all things id's like by user

If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]

Response[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]

Source code in thingiverse/api/user/get_users_username_likesids.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameLikesidsResponse401
    | GetUsersUsernameLikesidsResponse403
    | GetUsersUsernameLikesidsResponse404
    | list[int]
]:
    """Get all things id's like by user

     If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameLikesidsResponse401 | GetUsersUsernameLikesidsResponse403 | GetUsersUsernameLikesidsResponse404 | list[int]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

Get the list of personal tags.

returns a list of Recommended tags which are based on the users likes and collected things.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema] | None

GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]

Source code in thingiverse/api/user/get_users_username_recommended_tags.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameRecommendedTagsResponse401
    | GetUsersUsernameRecommendedTagsResponse403
    | GetUsersUsernameRecommendedTagsResponse404
    | list[TagSchema]
    | None
):
    """Get the list of personal tags.

     returns a list of Recommended tags which are based on the users likes and collected things.

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]
    """

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

Get the list of personal tags.

returns a list of Recommended tags which are based on the users likes and collected things.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]

Response[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]

Source code in thingiverse/api/user/get_users_username_recommended_tags.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameRecommendedTagsResponse401
    | GetUsersUsernameRecommendedTagsResponse403
    | GetUsersUsernameRecommendedTagsResponse404
    | list[TagSchema]
]:
    """Get the list of personal tags.

     returns a list of Recommended tags which are based on the users likes and collected things.

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

Get the list of personal tags.

returns a list of Recommended tags which are based on the users likes and collected things.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema] | None

GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]

Source code in thingiverse/api/user/get_users_username_recommended_tags.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameRecommendedTagsResponse401
    | GetUsersUsernameRecommendedTagsResponse403
    | GetUsersUsernameRecommendedTagsResponse404
    | list[TagSchema]
    | None
):
    """Get the list of personal tags.

     returns a list of Recommended tags which are based on the users likes and collected things.

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]
    """

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

Get the list of personal tags.

returns a list of Recommended tags which are based on the users likes and collected things.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]

Response[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]

Source code in thingiverse/api/user/get_users_username_recommended_tags.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameRecommendedTagsResponse401
    | GetUsersUsernameRecommendedTagsResponse403
    | GetUsersUsernameRecommendedTagsResponse404
    | list[TagSchema]
]:
    """Get the list of personal tags.

     returns a list of Recommended tags which are based on the users likes and collected things.

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameRecommendedTagsResponse401 | GetUsersUsernameRecommendedTagsResponse403 | GetUsersUsernameRecommendedTagsResponse404 | list[TagSchema]]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

Get a bunch random things from categories based on the users likes and collected things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema] | None

GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_recommended_things.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameRecommendedThingsResponse401
    | GetUsersUsernameRecommendedThingsResponse403
    | GetUsersUsernameRecommendedThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get a bunch random things from categories based on the users likes and collected things

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]
    """

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

Get a bunch random things from categories based on the users likes and collected things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_recommended_things.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameRecommendedThingsResponse401
    | GetUsersUsernameRecommendedThingsResponse403
    | GetUsersUsernameRecommendedThingsResponse404
    | list[ThingSchema]
]:
    """Get a bunch random things from categories based on the users likes and collected things

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

Get a bunch random things from categories based on the users likes and collected things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema] | None

GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_recommended_things.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameRecommendedThingsResponse401
    | GetUsersUsernameRecommendedThingsResponse403
    | GetUsersUsernameRecommendedThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get a bunch random things from categories based on the users likes and collected things

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]
    """

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

Get a bunch random things from categories based on the users likes and collected things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_recommended_things.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameRecommendedThingsResponse401
    | GetUsersUsernameRecommendedThingsResponse403
    | GetUsersUsernameRecommendedThingsResponse404
    | list[ThingSchema]
]:
    """Get a bunch random things from categories based on the users likes and collected things

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameRecommendedThingsResponse401 | GetUsersUsernameRecommendedThingsResponse403 | GetUsersUsernameRecommendedThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_search_term

asyncio(username, term, *, client) async

Search data by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
term str
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
GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404 | None

GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404

Source code in thingiverse/api/user/get_users_username_search_term.py
async def asyncio(
    username: str,
    term: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameSearchTermResponse200
    | GetUsersUsernameSearchTermResponse401
    | GetUsersUsernameSearchTermResponse403
    | GetUsersUsernameSearchTermResponse404
    | None
):
    """Search data by user

    Args:
        username (str):  Example: thingiverse.
        term (str):

    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:
        GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404
    """

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

asyncio_detailed(username, term, *, client) async

Search data by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
term str
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[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]

Response[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]

Source code in thingiverse/api/user/get_users_username_search_term.py
async def asyncio_detailed(
    username: str,
    term: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameSearchTermResponse200
    | GetUsersUsernameSearchTermResponse401
    | GetUsersUsernameSearchTermResponse403
    | GetUsersUsernameSearchTermResponse404
]:
    """Search data by user

    Args:
        username (str):  Example: thingiverse.
        term (str):

    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[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        term=term,
    )

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

    return _build_response(client=client, response=response)

sync(username, term, *, client)

Search data by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
term str
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
GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404 | None

GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404

Source code in thingiverse/api/user/get_users_username_search_term.py
def sync(
    username: str,
    term: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameSearchTermResponse200
    | GetUsersUsernameSearchTermResponse401
    | GetUsersUsernameSearchTermResponse403
    | GetUsersUsernameSearchTermResponse404
    | None
):
    """Search data by user

    Args:
        username (str):  Example: thingiverse.
        term (str):

    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:
        GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404
    """

    return sync_detailed(
        username=username,
        term=term,
        client=client,
    ).parsed

sync_detailed(username, term, *, client)

Search data by user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
term str
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[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]

Response[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]

Source code in thingiverse/api/user/get_users_username_search_term.py
def sync_detailed(
    username: str,
    term: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameSearchTermResponse200
    | GetUsersUsernameSearchTermResponse401
    | GetUsersUsernameSearchTermResponse403
    | GetUsersUsernameSearchTermResponse404
]:
    """Search data by user

    Args:
        username (str):  Example: thingiverse.
        term (str):

    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[GetUsersUsernameSearchTermResponse200 | GetUsersUsernameSearchTermResponse401 | GetUsersUsernameSearchTermResponse403 | GetUsersUsernameSearchTermResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        term=term,
    )

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

    return _build_response(client=client, response=response)

get_users_username_stats_by_day_start_date_end_date

asyncio(username, start_date, end_date, *, client) async

Get user's analytics of viewing and downloading things per day

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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
GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item] | None

GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]

Source code in thingiverse/api/user/get_users_username_stats_by_day_start_date_end_date.py
async def asyncio(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameStatsByDayStartDateEndDateResponse401
    | GetUsersUsernameStatsByDayStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
    | None
):
    """Get user's analytics of viewing and downloading things per day

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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:
        GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
    """

    return (
        await asyncio_detailed(
            username=username,
            start_date=start_date,
            end_date=end_date,
            client=client,
        )
    ).parsed

asyncio_detailed(username, start_date, end_date, *, client) async

Get user's analytics of viewing and downloading things per day

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]

Response[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]

Source code in thingiverse/api/user/get_users_username_stats_by_day_start_date_end_date.py
async def asyncio_detailed(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameStatsByDayStartDateEndDateResponse401
    | GetUsersUsernameStatsByDayStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
]:
    """Get user's analytics of viewing and downloading things per day

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]
    """

    kwargs = _get_kwargs(
        username=username,
        start_date=start_date,
        end_date=end_date,
    )

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

    return _build_response(client=client, response=response)

sync(username, start_date, end_date, *, client)

Get user's analytics of viewing and downloading things per day

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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
GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item] | None

GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]

Source code in thingiverse/api/user/get_users_username_stats_by_day_start_date_end_date.py
def sync(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameStatsByDayStartDateEndDateResponse401
    | GetUsersUsernameStatsByDayStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
    | None
):
    """Get user's analytics of viewing and downloading things per day

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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:
        GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
    """

    return sync_detailed(
        username=username,
        start_date=start_date,
        end_date=end_date,
        client=client,
    ).parsed

sync_detailed(username, start_date, end_date, *, client)

Get user's analytics of viewing and downloading things per day

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]

Response[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]

Source code in thingiverse/api/user/get_users_username_stats_by_day_start_date_end_date.py
def sync_detailed(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameStatsByDayStartDateEndDateResponse401
    | GetUsersUsernameStatsByDayStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]
]:
    """Get user's analytics of viewing and downloading things per day

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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[GetUsersUsernameStatsByDayStartDateEndDateResponse401 | GetUsersUsernameStatsByDayStartDateEndDateResponse404 | list[GetUsersUsernameStatsByDayStartDateEndDateResponse200Item]]
    """

    kwargs = _get_kwargs(
        username=username,
        start_date=start_date,
        end_date=end_date,
    )

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

    return _build_response(client=client, response=response)

get_users_username_stats_by_thing_start_date_end_date

asyncio(username, start_date, end_date, *, client) async

Get user's analytics of viewing and downloading by things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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
GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item] | None

GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]

Source code in thingiverse/api/user/get_users_username_stats_by_thing_start_date_end_date.py
async def asyncio(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameStatsByThingStartDateEndDateResponse401
    | GetUsersUsernameStatsByThingStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
    | None
):
    """Get user's analytics of viewing and downloading by things

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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:
        GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
    """

    return (
        await asyncio_detailed(
            username=username,
            start_date=start_date,
            end_date=end_date,
            client=client,
        )
    ).parsed

asyncio_detailed(username, start_date, end_date, *, client) async

Get user's analytics of viewing and downloading by things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]

Response[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]

Source code in thingiverse/api/user/get_users_username_stats_by_thing_start_date_end_date.py
async def asyncio_detailed(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameStatsByThingStartDateEndDateResponse401
    | GetUsersUsernameStatsByThingStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
]:
    """Get user's analytics of viewing and downloading by things

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]
    """

    kwargs = _get_kwargs(
        username=username,
        start_date=start_date,
        end_date=end_date,
    )

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

    return _build_response(client=client, response=response)

sync(username, start_date, end_date, *, client)

Get user's analytics of viewing and downloading by things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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
GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item] | None

GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]

Source code in thingiverse/api/user/get_users_username_stats_by_thing_start_date_end_date.py
def sync(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameStatsByThingStartDateEndDateResponse401
    | GetUsersUsernameStatsByThingStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
    | None
):
    """Get user's analytics of viewing and downloading by things

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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:
        GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
    """

    return sync_detailed(
        username=username,
        start_date=start_date,
        end_date=end_date,
        client=client,
    ).parsed

sync_detailed(username, start_date, end_date, *, client)

Get user's analytics of viewing and downloading by things

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
start_date str

Example: 2023-03-28.

required
end_date str

Example: 2023-04-27.

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[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]

Response[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]

Source code in thingiverse/api/user/get_users_username_stats_by_thing_start_date_end_date.py
def sync_detailed(
    username: str,
    start_date: str,
    end_date: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameStatsByThingStartDateEndDateResponse401
    | GetUsersUsernameStatsByThingStartDateEndDateResponse404
    | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]
]:
    """Get user's analytics of viewing and downloading by things

    Args:
        username (str):  Example: thingiverse.
        start_date (str):  Example: 2023-03-28.
        end_date (str):  Example: 2023-04-27.

    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[GetUsersUsernameStatsByThingStartDateEndDateResponse401 | GetUsersUsernameStatsByThingStartDateEndDateResponse404 | list[GetUsersUsernameStatsByThingStartDateEndDateResponse200Item]]
    """

    kwargs = _get_kwargs(
        username=username,
        start_date=start_date,
        end_date=end_date,
    )

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

    return _build_response(client=client, response=response)

get_users_username_things

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

Get things by user

If an authenticated user is requesting their own list of things, unpublished things will also appear in the list. If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema] | None

GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_things.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameThingsResponse401
    | GetUsersUsernameThingsResponse403
    | GetUsersUsernameThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get things by user

     If an authenticated user is requesting their own list of things, unpublished things will also appear
    in the list. If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]
    """

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

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

Get things by user

If an authenticated user is requesting their own list of things, unpublished things will also appear in the list. If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_things.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameThingsResponse401
    | GetUsersUsernameThingsResponse403
    | GetUsersUsernameThingsResponse404
    | list[ThingSchema]
]:
    """Get things by user

     If an authenticated user is requesting their own list of things, unpublished things will also appear
    in the list. If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

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

Get things by user

If an authenticated user is requesting their own list of things, unpublished things will also appear in the list. If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema] | None

GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]

Source code in thingiverse/api/user/get_users_username_things.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> (
    GetUsersUsernameThingsResponse401
    | GetUsersUsernameThingsResponse403
    | GetUsersUsernameThingsResponse404
    | list[ThingSchema]
    | None
):
    """Get things by user

     If an authenticated user is requesting their own list of things, unpublished things will also appear
    in the list. If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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:
        GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]
    """

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

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

Get things by user

If an authenticated user is requesting their own list of things, unpublished things will also appear in the list. If the user doesn't exist, result is 404 Not Found

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]

Response[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]

Source code in thingiverse/api/user/get_users_username_things.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    page: int | Unset = UNSET,
    per_page: int | Unset = UNSET,
) -> Response[
    GetUsersUsernameThingsResponse401
    | GetUsersUsernameThingsResponse403
    | GetUsersUsernameThingsResponse404
    | list[ThingSchema]
]:
    """Get things by user

     If an authenticated user is requesting their own list of things, unpublished things will also appear
    in the list. If the user doesn't exist, result is 404 Not Found

    Args:
        username (str):  Example: thingiverse.
        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[GetUsersUsernameThingsResponse401 | GetUsersUsernameThingsResponse403 | GetUsersUsernameThingsResponse404 | list[ThingSchema]]
    """

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

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

    return _build_response(client=client, response=response)

get_users_username_unread_message_count

asyncio(username, *, client) async

Get the count of messages for user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404 | None

GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404

Source code in thingiverse/api/user/get_users_username_unread_message_count.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameUnreadMessageCountResponse200
    | GetUsersUsernameUnreadMessageCountResponse401
    | GetUsersUsernameUnreadMessageCountResponse403
    | GetUsersUsernameUnreadMessageCountResponse404
    | None
):
    """Get the count of messages for user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404
    """

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

asyncio_detailed(username, *, client) async

Get the count of messages for user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]

Response[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]

Source code in thingiverse/api/user/get_users_username_unread_message_count.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameUnreadMessageCountResponse200
    | GetUsersUsernameUnreadMessageCountResponse401
    | GetUsersUsernameUnreadMessageCountResponse403
    | GetUsersUsernameUnreadMessageCountResponse404
]:
    """Get the count of messages for user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Get the count of messages for user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404 | None

GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404

Source code in thingiverse/api/user/get_users_username_unread_message_count.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    GetUsersUsernameUnreadMessageCountResponse200
    | GetUsersUsernameUnreadMessageCountResponse401
    | GetUsersUsernameUnreadMessageCountResponse403
    | GetUsersUsernameUnreadMessageCountResponse404
    | None
):
    """Get the count of messages for user

    Args:
        username (str):  Example: thingiverse.

    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:
        GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404
    """

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

sync_detailed(username, *, client)

Get the count of messages for user

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]

Response[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]

Source code in thingiverse/api/user/get_users_username_unread_message_count.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    GetUsersUsernameUnreadMessageCountResponse200
    | GetUsersUsernameUnreadMessageCountResponse401
    | GetUsersUsernameUnreadMessageCountResponse403
    | GetUsersUsernameUnreadMessageCountResponse404
]:
    """Get the count of messages for user

    Args:
        username (str):  Example: thingiverse.

    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[GetUsersUsernameUnreadMessageCountResponse200 | GetUsersUsernameUnreadMessageCountResponse401 | GetUsersUsernameUnreadMessageCountResponse403 | GetUsersUsernameUnreadMessageCountResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

patch_users_username

asyncio(username, *, client, body=UNSET) async

Update the user's profile

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PatchUsersUsernameBody | Unset
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
PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema | None

PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema

Source code in thingiverse/api/user/patch_users_username.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PatchUsersUsernameBody | Unset = UNSET,
) -> (
    PatchUsersUsernameResponse401
    | PatchUsersUsernameResponse403
    | PatchUsersUsernameResponse404
    | UserSchema
    | None
):
    """Update the user's profile

    Args:
        username (str):  Example: thingiverse.
        body (PatchUsersUsernameBody | Unset):

    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:
        PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema
    """

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

asyncio_detailed(username, *, client, body=UNSET) async

Update the user's profile

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PatchUsersUsernameBody | Unset
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[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]

Response[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]

Source code in thingiverse/api/user/patch_users_username.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PatchUsersUsernameBody | Unset = UNSET,
) -> Response[
    PatchUsersUsernameResponse401
    | PatchUsersUsernameResponse403
    | PatchUsersUsernameResponse404
    | UserSchema
]:
    """Update the user's profile

    Args:
        username (str):  Example: thingiverse.
        body (PatchUsersUsernameBody | Unset):

    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[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client, body=UNSET)

Update the user's profile

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PatchUsersUsernameBody | Unset
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
PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema | None

PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema

Source code in thingiverse/api/user/patch_users_username.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PatchUsersUsernameBody | Unset = UNSET,
) -> (
    PatchUsersUsernameResponse401
    | PatchUsersUsernameResponse403
    | PatchUsersUsernameResponse404
    | UserSchema
    | None
):
    """Update the user's profile

    Args:
        username (str):  Example: thingiverse.
        body (PatchUsersUsernameBody | Unset):

    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:
        PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema
    """

    return sync_detailed(
        username=username,
        client=client,
        body=body,
    ).parsed

sync_detailed(username, *, client, body=UNSET)

Update the user's profile

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PatchUsersUsernameBody | Unset
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[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]

Response[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]

Source code in thingiverse/api/user/patch_users_username.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PatchUsersUsernameBody | Unset = UNSET,
) -> Response[
    PatchUsersUsernameResponse401
    | PatchUsersUsernameResponse403
    | PatchUsersUsernameResponse404
    | UserSchema
]:
    """Update the user's profile

    Args:
        username (str):  Example: thingiverse.
        body (PatchUsersUsernameBody | Unset):

    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[PatchUsersUsernameResponse401 | PatchUsersUsernameResponse403 | PatchUsersUsernameResponse404 | UserSchema]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_users_username_avatar_image

asyncio(username, *, client, body=UNSET) async

Update the avatar image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameAvatarImageBody | Unset
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
PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404 | None

PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404

Source code in thingiverse/api/user/post_users_username_avatar_image.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameAvatarImageBody | Unset = UNSET,
) -> (
    PostUsersUsernameAvatarImageResponse200
    | PostUsersUsernameAvatarImageResponse401
    | PostUsersUsernameAvatarImageResponse403
    | PostUsersUsernameAvatarImageResponse404
    | None
):
    """Update the avatar image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameAvatarImageBody | Unset):

    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:
        PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404
    """

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

asyncio_detailed(username, *, client, body=UNSET) async

Update the avatar image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameAvatarImageBody | Unset
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[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]

Response[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]

Source code in thingiverse/api/user/post_users_username_avatar_image.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameAvatarImageBody | Unset = UNSET,
) -> Response[
    PostUsersUsernameAvatarImageResponse200
    | PostUsersUsernameAvatarImageResponse401
    | PostUsersUsernameAvatarImageResponse403
    | PostUsersUsernameAvatarImageResponse404
]:
    """Update the avatar image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameAvatarImageBody | Unset):

    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[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client, body=UNSET)

Update the avatar image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameAvatarImageBody | Unset
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
PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404 | None

PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404

Source code in thingiverse/api/user/post_users_username_avatar_image.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameAvatarImageBody | Unset = UNSET,
) -> (
    PostUsersUsernameAvatarImageResponse200
    | PostUsersUsernameAvatarImageResponse401
    | PostUsersUsernameAvatarImageResponse403
    | PostUsersUsernameAvatarImageResponse404
    | None
):
    """Update the avatar image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameAvatarImageBody | Unset):

    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:
        PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404
    """

    return sync_detailed(
        username=username,
        client=client,
        body=body,
    ).parsed

sync_detailed(username, *, client, body=UNSET)

Update the avatar image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameAvatarImageBody | Unset
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[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]

Response[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]

Source code in thingiverse/api/user/post_users_username_avatar_image.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameAvatarImageBody | Unset = UNSET,
) -> Response[
    PostUsersUsernameAvatarImageResponse200
    | PostUsersUsernameAvatarImageResponse401
    | PostUsersUsernameAvatarImageResponse403
    | PostUsersUsernameAvatarImageResponse404
]:
    """Update the avatar image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameAvatarImageBody | Unset):

    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[PostUsersUsernameAvatarImageResponse200 | PostUsersUsernameAvatarImageResponse401 | PostUsersUsernameAvatarImageResponse403 | PostUsersUsernameAvatarImageResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_users_username_cover_image

asyncio(username, *, client, body=UNSET) async

Update the cover image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameCoverImageBody | Unset
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
PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404 | None

PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404

Source code in thingiverse/api/user/post_users_username_cover_image.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameCoverImageBody | Unset = UNSET,
) -> (
    PostUsersUsernameCoverImageResponse200
    | PostUsersUsernameCoverImageResponse401
    | PostUsersUsernameCoverImageResponse403
    | PostUsersUsernameCoverImageResponse404
    | None
):
    """Update the cover image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameCoverImageBody | Unset):

    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:
        PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404
    """

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

asyncio_detailed(username, *, client, body=UNSET) async

Update the cover image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameCoverImageBody | Unset
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[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]

Response[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]

Source code in thingiverse/api/user/post_users_username_cover_image.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameCoverImageBody | Unset = UNSET,
) -> Response[
    PostUsersUsernameCoverImageResponse200
    | PostUsersUsernameCoverImageResponse401
    | PostUsersUsernameCoverImageResponse403
    | PostUsersUsernameCoverImageResponse404
]:
    """Update the cover image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameCoverImageBody | Unset):

    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[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client, body=UNSET)

Update the cover image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameCoverImageBody | Unset
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
PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404 | None

PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404

Source code in thingiverse/api/user/post_users_username_cover_image.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameCoverImageBody | Unset = UNSET,
) -> (
    PostUsersUsernameCoverImageResponse200
    | PostUsersUsernameCoverImageResponse401
    | PostUsersUsernameCoverImageResponse403
    | PostUsersUsernameCoverImageResponse404
    | None
):
    """Update the cover image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameCoverImageBody | Unset):

    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:
        PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404
    """

    return sync_detailed(
        username=username,
        client=client,
        body=body,
    ).parsed

sync_detailed(username, *, client, body=UNSET)

Update the cover image

Must use the POST method

Parameters:

Name Type Description Default
username str

Example: thingiverse.

required
body PostUsersUsernameCoverImageBody | Unset
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[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]

Response[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]

Source code in thingiverse/api/user/post_users_username_cover_image.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
    body: PostUsersUsernameCoverImageBody | Unset = UNSET,
) -> Response[
    PostUsersUsernameCoverImageResponse200
    | PostUsersUsernameCoverImageResponse401
    | PostUsersUsernameCoverImageResponse403
    | PostUsersUsernameCoverImageResponse404
]:
    """Update the cover image

     Must use the POST method

    Args:
        username (str):  Example: thingiverse.
        body (PostUsersUsernameCoverImageBody | Unset):

    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[PostUsersUsernameCoverImageResponse200 | PostUsersUsernameCoverImageResponse401 | PostUsersUsernameCoverImageResponse403 | PostUsersUsernameCoverImageResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
        body=body,
    )

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

    return _build_response(client=client, response=response)

post_users_username_followers

asyncio(username, *, client) async

Follow an user

Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400 Bad Request if the user is trying to follow itself.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404 | None

PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404

Source code in thingiverse/api/user/post_users_username_followers.py
async def asyncio(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    PostUsersUsernameFollowersResponse200
    | PostUsersUsernameFollowersResponse401
    | PostUsersUsernameFollowersResponse403
    | PostUsersUsernameFollowersResponse404
    | None
):
    """Follow an user

     Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400
    Bad Request if the user is trying to follow itself.

    Args:
        username (str):  Example: thingiverse.

    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:
        PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404
    """

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

asyncio_detailed(username, *, client) async

Follow an user

Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400 Bad Request if the user is trying to follow itself.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]

Response[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]

Source code in thingiverse/api/user/post_users_username_followers.py
async def asyncio_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostUsersUsernameFollowersResponse200
    | PostUsersUsernameFollowersResponse401
    | PostUsersUsernameFollowersResponse403
    | PostUsersUsernameFollowersResponse404
]:
    """Follow an user

     Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400
    Bad Request if the user is trying to follow itself.

    Args:
        username (str):  Example: thingiverse.

    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[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)

sync(username, *, client)

Follow an user

Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400 Bad Request if the user is trying to follow itself.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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
PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404 | None

PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404

Source code in thingiverse/api/user/post_users_username_followers.py
def sync(
    username: str,
    *,
    client: AuthenticatedClient,
) -> (
    PostUsersUsernameFollowersResponse200
    | PostUsersUsernameFollowersResponse401
    | PostUsersUsernameFollowersResponse403
    | PostUsersUsernameFollowersResponse404
    | None
):
    """Follow an user

     Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400
    Bad Request if the user is trying to follow itself.

    Args:
        username (str):  Example: thingiverse.

    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:
        PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404
    """

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

sync_detailed(username, *, client)

Follow an user

Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400 Bad Request if the user is trying to follow itself.

Parameters:

Name Type Description Default
username str

Example: thingiverse.

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[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]

Response[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]

Source code in thingiverse/api/user/post_users_username_followers.py
def sync_detailed(
    username: str,
    *,
    client: AuthenticatedClient,
) -> Response[
    PostUsersUsernameFollowersResponse200
    | PostUsersUsernameFollowersResponse401
    | PostUsersUsernameFollowersResponse403
    | PostUsersUsernameFollowersResponse404
]:
    """Follow an user

     Must use the POST method Result will be 404 Not Found if the user doesn't exist. Result will be 400
    Bad Request if the user is trying to follow itself.

    Args:
        username (str):  Example: thingiverse.

    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[PostUsersUsernameFollowersResponse200 | PostUsersUsernameFollowersResponse401 | PostUsersUsernameFollowersResponse403 | PostUsersUsernameFollowersResponse404]
    """

    kwargs = _get_kwargs(
        username=username,
    )

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

    return _build_response(client=client, response=response)