mgnipy.emgapi_v2_client.api.authentication.token_obtain_sliding module#
- async mgnipy.emgapi_v2_client.api.authentication.token_obtain_sliding.asyncio(*, client, body)[source]#
Obtain an authentication token using Webin credentials.
Obtain an authentication JWT token using Webin credentials. This token is sliding, i.e. it can be
used both to access private data endpoints and to refresh itself after expiry.
- Parameters:
body (WebinTokenRequest)
client (AuthenticatedClient | Client)
- 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_obtain_sliding.asyncio_detailed(*, client, body)[source]#
Obtain an authentication token using Webin credentials.
Obtain an authentication JWT token using Webin credentials. This token is sliding, i.e. it can be
used both to access private data endpoints and to refresh itself after expiry.
- Parameters:
body (WebinTokenRequest)
client (AuthenticatedClient | Client)
- 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:
- mgnipy.emgapi_v2_client.api.authentication.token_obtain_sliding.sync(*, client, body)[source]#
Obtain an authentication token using Webin credentials.
Obtain an authentication JWT token using Webin credentials. This token is sliding, i.e. it can be
used both to access private data endpoints and to refresh itself after expiry.
- Parameters:
body (WebinTokenRequest)
client (AuthenticatedClient | Client)
- 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_obtain_sliding.sync_detailed(*, client, body)[source]#
Obtain an authentication token using Webin credentials.
Obtain an authentication JWT token using Webin credentials. This token is sliding, i.e. it can be
used both to access private data endpoints and to refresh itself after expiry.
- Parameters:
body (WebinTokenRequest)
client (AuthenticatedClient | Client)
- 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: