User
Login user
import sdk
from sdk.models import operations
s = sdk.SDK(
security=shared.Security(
bearer_auth="",
),
)
req = operations.LoginApplicationJSON(
email='Kenny50@yahoo.com',
password='rem',
)
res = s.user.login(req)
if res.body is not None:
# handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.LoginApplicationJSON | ✔️ | The request object to use for the request. |
Show current user
import sdk
s = sdk.SDK(
security=shared.Security(
bearer_auth="",
),
)
res = s.user.me()
if res.body is not None:
# handle response