Creates a new ExperienceApiClient instance.
Configuration for the Experience API client.
Protected ReadonlybaseBase URL used for Experience API requests.
Protected ReadonlyclientClient identifier used for authentication or tracking.
Protected ReadonlyenvironmentContentful environment associated with this client.
Protected ReadonlyfetchProtected fetch method used by the client to perform HTTP requests.
Protected ReadonlynameName of the API client, used in log messages and as the apiName for fetch.
Creates a profile and returns the resulting optimization data.
Parameters containing the events to aggregate into the profile.
Optional request options.
The optimization data for the newly created profile.
Retrieves a profile by ID.
The profile ID to retrieve.
Optional request options. preflight and plainText are not allowed here.
The current optimization data for the profile.
ProtectedlogLogs errors that occur during API requests with standardized messages.
The error thrown by the underlying operation.
Additional metadata about the request.
Human-readable name of the request operation.
Updates an existing profile with the given profile ID.
Parameters including the profile ID and events.
Optional request options.
The updated optimization data for the profile.
Sends multiple events to the Ninetailed Experience API to upsert many profiles.
Parameters containing the batch of events.
Optional request options.
The list of profiles affected by the batch operation.
Creates or updates a profile depending on whether a profileId is provided.
Parameters including optional profile ID and events.
Optionaloptions: ExperienceApiClientRequestOptionsOptional request options.
The resulting optimization data.
Client for interacting with the Experience API.
Remarks
This client is responsible for reading and mutating Ninetailed profiles using the Experience API.
Example
Extends
ApiClientBase.