This is the official Golang client SDK for Pirsch. For details, please check out our documentation.
go get github.com/pirsch-analytics/pirsch-go-sdk/v2
package main
import (
"log"
pirsch "github.com/pirsch-analytics/pirsch-go-sdk/v2/pkg"
)
func main() {
// Create a new client using the client ID and secret you've created on the dashboard.
client := pirsch.NewClient("client_id", "client_secret", nil)
// Get the dashboard domain for this client (you should handle the error).
domain, _ := client.Domain()
// Print the hostname for the dashboard.
log.Println(domain.Hostname)
}See CHANGELOG.md.
MIT