Skip to content

jjideenschmiede/gotimev2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library for timev2

GitHub go.mod Go version of a Go module Go Go Report Card Go Doc Lines of code Developed with <3

With this small library you can interact with the timev2 API.

Install

go get github.com/jjideenschmiede/gotimev2

How to use?

Get all times by month

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

Get all clients

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

About

Our little library to use the timev2 api with go.

Resources

License

Stars

Watchers

Forks

Languages