mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding module

mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding module#

async mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding.asyncio(*, client, body)[source]#

Refresh an authentication token to increase its validity duration.

If a token’s expiry has passed, but its (longer) refresh expiry remains valid, this endpoint can be

used to fetch a replacement token without logging in again.

Parameters:
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:

WebinTokenResponse

Return type:

WebinTokenResponse | None

async mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding.asyncio_detailed(*, client, body)[source]#

Refresh an authentication token to increase its validity duration.

If a token’s expiry has passed, but its (longer) refresh expiry remains valid, this endpoint can be

used to fetch a replacement token without logging in again.

Parameters:
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[WebinTokenResponse]

Return type:

Response[WebinTokenResponse]

mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding.sync(*, client, body)[source]#

Refresh an authentication token to increase its validity duration.

If a token’s expiry has passed, but its (longer) refresh expiry remains valid, this endpoint can be

used to fetch a replacement token without logging in again.

Parameters:
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:

WebinTokenResponse

Return type:

WebinTokenResponse | None

mgnipy.emgapi_v2_client.api.authentication.token_refresh_sliding.sync_detailed(*, client, body)[source]#

Refresh an authentication token to increase its validity duration.

If a token’s expiry has passed, but its (longer) refresh expiry remains valid, this endpoint can be

used to fetch a replacement token without logging in again.

Parameters:
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[WebinTokenResponse]

Return type:

Response[WebinTokenResponse]