A Mixpanel client written in Go
This project is under heavy development and not officially released yet.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
This library doesn't use 3rd party library for its core. But 3rd party library is being used for unit test. If you really want to run unit tests in the project.
go get -u github.com/spf13/viper
go get -u github.com/stretchr/testify/assert
Use go get
to get this library.
go get -u github.com/antonyho/mixpanel
To thoroughly run all tests including Track and Engage, you have to set Mixpanel token to your environment variable. The test will make RESTful calls to your Mixpanel account.
export MIXPANEL_TOKEN="<token string from Mixpanel>"
go test -v ./...
import github.com/antonyho/mixpanel
token := "<Mixpanel token from Mixpanel setting page>"
mp := mixpanel.NewClient(token)
...
result, err := mp.Track()
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Antony Ho - Initial work - antonyho
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- GoDoc compatible Documentation
- More test cases
- Better instruction on README.md
- License file
- Version 1.0.0