https://github.com/cdimascio/mixpanel-export-java
Lightweight export library for Mixpanel
https://github.com/cdimascio/mixpanel-export-java
exporter java mixpanel
Last synced: about 1 year ago
JSON representation
Lightweight export library for Mixpanel
- Host: GitHub
- URL: https://github.com/cdimascio/mixpanel-export-java
- Owner: cdimascio
- License: mit
- Created: 2015-06-07T01:16:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-12T21:46:54.000Z (about 9 years ago)
- Last Synced: 2025-02-04T10:57:21.033Z (over 1 year ago)
- Topics: exporter, java, mixpanel
- Language: Java
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mixpanel-export-java
Export Mixpanel events from Java
### Build the jar with Maven
- `git clone` repo and `cd` to the project root
- `mvn install`
_In typical Maven fashion, the jar is output to the `target` folder._
### Example
See [ExamplesTest.java](https://github.com/cdimascio/mixpanel-export-java/blob/master/test/java/com/cmd/mixpanel/test/ExamplesTest.java)
```java
public class Example {
private static final String MIXPANEL_API_KEY = "";
private static final String MIXPANEL_API_SECRET = "";
public static void main(String[] args) {
LocalDate from = LocalDate.parse("20150604", DateTimeFormatter.BASIC_ISO_DATE);
LocalDate to = LocalDate.parse("20150604", DateTimeFormatter.BASIC_ISO_DATE);
List res = Mixpanel.getInstance(MIXPANEL_API_KEY, MIXPANEL_API_SECRET).
export(from, to);
}
}
```
### License
The MIT License