(authentication)
The authentication endpoints.
- authenticate - Authenticate with the API by providing a username and password.
Authenticate with the API by providing a username and password.
from speakeasy_bar_py import BarPython
s = BarPython()
res = s.authentication.authenticate(request={})
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AuthenticateRequestBody | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.AuthenticateResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 5XX | application/json |
errors.SDKError | 4XX | */* |