auth_get_csrf

Return object containing CSRF token

Functions

async pydelfini.delfini_core.api.auth.auth_get_csrf.asyncio(*, client)[source]

Return object containing CSRF token

Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[AuthGetCsrfResponse200]

Parameters:

client (AuthenticatedClient | Client)

Return type:

AuthGetCsrfResponse200

async pydelfini.delfini_core.api.auth.auth_get_csrf.asyncio_detailed(*, client)[source]

Return object containing CSRF token

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[AuthGetCsrfResponse200, ServerError]]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Response[AuthGetCsrfResponse200 | ServerError]

pydelfini.delfini_core.api.auth.auth_get_csrf.sync(*, client)[source]

Return object containing CSRF token

Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[AuthGetCsrfResponse200]

Parameters:

client (AuthenticatedClient | Client)

Return type:

AuthGetCsrfResponse200

pydelfini.delfini_core.api.auth.auth_get_csrf.sync_detailed(*, client)[source]

Return object containing CSRF token

Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[AuthGetCsrfResponse200, ServerError]]

Parameters:

client (AuthenticatedClient | Client)

Return type:

Response[AuthGetCsrfResponse200 | ServerError]