Parameter | Type | Required | Description |
sdk_account_id | str | Yes | Unique PageSense SDK account identifier. |
sdk_key | str | Yes | SDK key associated with the PageSense project. |
project_name | str | Yes | Name of the PageSense project. |
sdk_options | PageSenseSDKOptions | No | Optional SDK configuration settings. |
Type | Description |
PageSenseClient | Initialized SDK client used to evaluate experiments and track goals. |
from pagesense import (
PageSenseClient,
PageSenseClientBuilder,
)
# Create the SDK clientpagesense_client: PageSenseClient = (
PageSenseClientBuilder.create_new_pagesense_client(
sdk_account_id,
sdk_key,
project_name
)
)
from pagesense import (
PageSenseClient,
PageSenseClientBuilder,
PageSenseSDKOptions,
)
# Create the SDK Options object
sdk_options = (
PageSenseSDKOptions()
.add_log_level("DEBUG")
.add_polling_interval(300)
)# Create the SDK client
Method | Description | Default Value |
add_log_level() | Configures the SDK log level. | INFO |
add_polling_interval() | Configures the polling interval used to synchronise the project configuration. | 10 seconds |
add_custom_logger() | Registers a custom logger implementation. | Built-in logger |
add_custom_storage() | Registers a custom user storage implementation. | In-memory user storage |