public class SyncInsightsClient extends Object
| Constructor and Description |
|---|
SyncInsightsClient(InsightsConfig config,
APIClient client) |
SyncInsightsClient(String applicationId,
String apiKey,
APIClient client) |
SyncInsightsClient(String applicationId,
String apiKey,
String region,
APIClient client) |
| Modifier and Type | Method and Description |
|---|---|
InsightsResult |
sendEvent(InsightsEvent event)
This command pushes an event to the Insights API.
|
InsightsResult |
sendEvent(InsightsEvent event,
RequestOptions requestOptions)
This command pushes an event to the Insights API.
|
InsightsResult |
sendEvents(List<InsightsEvent> events)
This command pushes an array of events to the Insights API.
|
InsightsResult |
sendEvents(List<InsightsEvent> events,
RequestOptions requestOptions)
This command pushes an array of events to the Insights API.
|
SyncUserInsightsClient |
user(String userToken) |
public SyncInsightsClient(@Nonnull String applicationId, @Nonnull String apiKey, @Nonnull APIClient client)
applicationId - The application IDapiKey - The API Keyclient - API Clientpublic SyncInsightsClient(@Nonnull String applicationId, @Nonnull String apiKey, @Nonnull String region, @Nonnull APIClient client)
applicationId - The applicationIDapiKey - The api KEYregion - The server regionclient - APIClientpublic SyncInsightsClient(@Nonnull InsightsConfig config, @Nonnull APIClient client)
config - InsightsClientclient - APIClientpublic SyncUserInsightsClient user(@Nonnull String userToken)
userToken - the user configpublic InsightsResult sendEvent(@Nonnull InsightsEvent event) throws AlgoliaException
event - An eventAlgoliaException - If APi Errorpublic InsightsResult sendEvent(@Nonnull InsightsEvent event, @Nonnull RequestOptions requestOptions) throws AlgoliaException
event - An eventrequestOptions - RequestOptionsAlgoliaException - If APi Errorpublic InsightsResult sendEvents(@Nonnull List<InsightsEvent> events) throws AlgoliaException
events - List of eventsAlgoliaException - If APi Errorpublic InsightsResult sendEvents(@Nonnull List<InsightsEvent> events, @Nonnull RequestOptions requestOptions) throws AlgoliaException
events - List of eventsrequestOptions - RequestOptionsAlgoliaException - If APi ErrorCopyright © 2018. All rights reserved.