Reference
AnalyticsClient
The entry point. 4 methods.
from AnalyticsClient import AnalyticsClient
CLIENT_ID = "1000.xxxxxxx"
CLIENT_SECRET = "xxxxxxx"
REFRESH_TOKEN = "1000.xxxxxxx.xxxxxxx"
ac = AnalyticsClient(CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN)AnalyticsClient exposes 4 methods. Method names are snake_case and identifiers are str.
Methods#
get_bulk_instance, get_org_instance, get_view_instance, get_workspace_instance
get_bulk_instance#
get_bulk_instance(org_id, workspace_id)Returns a new C{BulkAPI} instance.
| Parameter | Type | Description |
|---|---|---|
org_id | string | The id of the organization. |
workspace_id | string | The id of the workspace. |
get_org_instance#
get_org_instance(org_id)Returns a new C{OrgAPI} instance.
| Parameter | Type | Description |
|---|---|---|
org_id | string | The id of the organization. |
get_view_instance#
get_view_instance(org_id, workspace_id, view_id)Returns a new C{ViewAPI} instance.
| Parameter | Type | Description |
|---|---|---|
org_id | string | The id of the organization. |
workspace_id | string | The id of the workspace. |
view_id | string | The id of the view. |
get_workspace_instance#
get_workspace_instance(org_id, workspace_id)Returns a new C{WorkspaceAPI} instance.
| Parameter | Type | Description |
|---|---|---|
org_id | string | The id of the organization. |
workspace_id | string | The id of the workspace. |