Search Docs…

Search Docs…

Integration

Integration

Java SDK

Java SDK

Integrating the Java SDK

Kassette’s Java SDK allows you to track your event data from your Java code. Once enabled, the event requests hit the Kassette servers. Kassette then routes the events to the specified destination platforms as configured by you.

Getting Started with the Kassette's Java SDK

Add to pom.xml

<dependency>

<groupId>com.kassette.ai.java.analytics</groupId>

<artifactId>analytics</artifactId>

<version>1.0.0</version>

</dependency>


or if you're using Gradle

implementation 'com.kassette.ai.sdk.java.analytics:analytics:1.0.0'


Initializing KassetteClient

KassetteAnalytics analytics = KassetteAnalytics

.builder("<WRITE_KEY>")

.setDataPlaneUrl("<DATA_PLANE_URL>")

.build();


Sending events

Map<String, Object> map = new HashMap<>();

map.put("name", "John Marshal");

map.put("email", "john@example.com");

analytics.enqueue(ReportingMessage.builder()

.userId("6754ds7d9")


By Kassette

© 2023