Skip to content

a golang implementation of the amplitude client

Notifications You must be signed in to change notification settings

xeoncross/amplitude-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amplitude-go

Amplitude client for Go. For additional documentation visit https://amplitude.com/docs or view the godocs.

Background

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

Installation

$ go get github.com/xeoncross/amplitude-go

Examples

Basic Client

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",
	})

About

a golang implementation of the amplitude client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%