fetch_user_scenarios
fetch_user_scenarios
Service for fetching user scenarios (ETEngine sessions).
Classes
FetchUserScenariosRunner
Bases: BaseRunner[List[Dict[str, Any]]]
Runner for fetching all scenarios belonging to the authenticated user.
GET /api/v3/scenarios
Supports pagination via query parameters: - page: Page number (1-indexed) - if provided, fetches only that page - per_page: Results per page (default 25)
When page is not provided, automatically fetches all pages.
Functions
run
staticmethod
Fetch scenarios for the authenticated user.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
HTTP client with authentication |
required |
page
|
Optional[int]
|
Optional page number. If provided, fetches only that page. If None, fetches all pages automatically. |
None
|
per_page
|
Optional[int]
|
Optional number of results per page |
None
|
**kwargs
|
Any
|
Additional query parameters |
{}
|
Returns:
| Type | Description |
|---|---|
ServiceResult[List[Dict[str, Any]]]
|
ServiceResult with list of scenario data dictionaries |