Amplitude client for Go. For additional documentation visit https://amplitude.com/docs or view the godocs.
This is a fork of the original that combines ConradIrwin's modification to use a custom http.Client and the better event options of https://github.com/msingleton/amplitude-go. I've also started work on actual testing.
TODO:
- More testing
- Support for the identify endpoint
$ go get github.com/xeoncross/amplitude-go
Full example of a simple event tracker.
apiKey := os.Getenv("AMPLITUDE_API_KEY")
client := amplitude.New(apiKey)
client.Publish(amplitude.Event{
UserId: "123",
EventType: "sample",
})