kavita_client.api.account.get_api_account

Module Contents

Functions

asyncio

Returns the current user, as it would from login

asyncio_detailed

Returns the current user, as it would from login

sync

Returns the current user, as it would from login

sync_detailed

Returns the current user, as it would from login

API

async kavita_client.api.account.get_api_account.asyncio(*, client: kavita_client.client.AuthenticatedClient | kavita_client.client.Client) → kavita_client.models.user_dto.UserDto | None

Returns the current user, as it would from login

Does not return tokens for the user

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:

UserDto

async kavita_client.api.account.get_api_account.asyncio_detailed(*, client: kavita_client.client.AuthenticatedClient | kavita_client.client.Client) → kavita_client.types.Response[kavita_client.models.user_dto.UserDto]

Returns the current user, as it would from login

Does not return tokens for the user

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[UserDto]

kavita_client.api.account.get_api_account.sync(*, client: kavita_client.client.AuthenticatedClient | kavita_client.client.Client) → kavita_client.models.user_dto.UserDto | None

Returns the current user, as it would from login

Does not return tokens for the user

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:

UserDto

kavita_client.api.account.get_api_account.sync_detailed(*, client: kavita_client.client.AuthenticatedClient | kavita_client.client.Client) → kavita_client.types.Response[kavita_client.models.user_dto.UserDto]

Returns the current user, as it would from login

Does not return tokens for the user

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[UserDto]