(authentication)
The authentication endpoints.
- login - Authenticate with the API by providing a username and password.
Authenticate with the API by providing a username and password.
import speakeasybar
from speakeasybar.models import operations
s = speakeasybar.Speakeasybar()
req = operations.LoginRequestBody(
type=operations.Type.API_KEY,
)
res = s.authentication.login(req, operations.LoginSecurity(
password="<PASSWORD>",
username="<USERNAME>",
))
if res.object is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.LoginRequestBody | ✔️ | The request object to use for the request. |
security |
operations.LoginSecurity | ✔️ | The security requirements to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
errors.APIError | 5XX | application/json |
errors.SDKError | 4xx-5xx | / |