(customer_portal.customer_session)
- introspect - Introspect Customer Session
- get_authenticated_user - Get Authenticated Portal User
Introspect the current session and return its information.
Scopes: customer_portal:read customer_portal:write
import polar_sdk
from polar_sdk import Polar
with Polar() as polar:
res = polar.customer_portal.customer_session.introspect(security=polar_sdk.CustomerPortalCustomerSessionIntrospectSecurity(
customer_session="<YOUR_BEARER_TOKEN_HERE>",
))
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
security |
models.CustomerPortalCustomerSessionIntrospectSecurity | ✔️ | The security requirements to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.CustomerCustomerSession
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Get information about the currently authenticated portal user.
Scopes: customer_portal:read customer_portal:write
import polar_sdk
from polar_sdk import Polar
with Polar() as polar:
res = polar.customer_portal.customer_session.get_authenticated_user(security=polar_sdk.CustomerPortalCustomerSessionGetAuthenticatedUserSecurity(
customer_session="<YOUR_BEARER_TOKEN_HERE>",
))
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
security |
models.CustomerPortalCustomerSessionGetAuthenticatedUserSecurity | ✔️ | The security requirements to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PortalAuthenticatedUser
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |