With this small library you can interact with the timev2 API.
go get github.com/jjideenschmiede/gotimev2
With the following function you can read out all times for one month.
// Define request
r := gotimev2.Request{
SubDomain: "",
Token: "",
}
// Get all times by month
times, err := gotimev2.TimesByMonth("2006-01", r)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(times)
}
With this function you can read out all customers.
// Define request
r := gotimev2.Request{
SubDomain: "",
Token: "",
}
// Get all clients
clients, err := gotimev2.Clients(r)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(clients)
}