Skip to content

pirsch-analytics/pirsch-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pirsch Golang SDK

Go Reference

This is the official Golang client SDK for Pirsch. For details, please check out our documentation.

Install

go get github.com/pirsch-analytics/pirsch-go-sdk/v2

Usage

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

Changelog

See CHANGELOG.md.

License

MIT

About

Golang Client SDK for Pirsch Analytics.

Topics

Resources

License

Stars

Watchers

Forks