mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-02-04 10:56:51 +00:00
20 lines
633 B
Markdown
20 lines
633 B
Markdown
# thousandeyes-sdk-core
|
|
|
|
This package provides core functionality for interacting with the ThousandEyes API and should be installed before using any of the published SDKs.
|
|
|
|
Usage example for iterating paginated responses:
|
|
|
|
```python
|
|
from thousandeyes_sdk.core import PaginatorIterator
|
|
from thousandeyes_sdk.dashboards.api.dashboards_api import DashboardsApi
|
|
|
|
dashboards_api = DashboardsApi()
|
|
for widget_data in PaginatorIterator(
|
|
dashboards_api.get_dashboard_widget_data,
|
|
lambda response: response.data.tests if response.data else [],
|
|
dashboard_id="dashboard-id",
|
|
widget_id="widget-id",
|
|
):
|
|
print(widget_data)
|
|
```
|