forked from mixpanel/mixpanel-java
-
Notifications
You must be signed in to change notification settings - Fork 0
License
danielwalker/mixpanel-java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the official Mixpanel tracking library for Java. Mixpanel also maintains a full-featured library for tracking events from Android apps at https://github.com/mixpanel/mixpanel-android And a full-featured client side library for web applications, in Javascript, that can be loaded directly from Mixpanel servers. To learn more about our Javascript library, see: https://mixpanel.com/docs/integration-libraries/javascript This library is intended for use in back end applications or API services that can't take advantage of the Android libraries or the Javascript library. To Use the Library: MessageBuilder messages = new MessageBuilder("my token"); JSONObject event = messages.event("joe@gribbl.com", "Logged In", null); // Later, or elsewhere... ClientDelivery delivery = new ClientDelivery(); delivery.addMessage(event); MixpanelAPI mixpanel = new MixpanelAPI(); mixpanel.deliver(delivery); The library is designed to produce events and people updates in one process or thread, and consume the events and people updates in another thread or process. Specially formatted JSON objects are built by MessageBuilder objects, and those messages can be consumed by the MixpanelAPI via ClientDelivery objects, possibly after serialization or IPC. License: See LICENSE File for details. The Base64Coder class used by this software has been licensed from non-Mixpanel sources and modified for use in the library. Please see Base64Coder.java for details. To Learn More: Mixpanel maintains documentation at http://www.mixpanel.com/docs This library in particular has more in-depth documentation at https://mixpanel.com/docs/integration-libraries/java The library also contains a simple demo application, that demonstrates using this library in an asynchronous environment. There are also community supported libraries in addition to this library, that provide a threading model, support for dealing directly with Java Servlet requests, support for persistent properties, etc. Two interesting ones are at: https://github.com/eranation/mixpanel-java https://github.com/scalascope/mixpanel-java
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Java 100.0%