module
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Sep 8, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
wakatime-go
[WIP] 🕘 Go library for accessing the Wakatime API
Install
Requirements
Go version 1.13+
Installation
go get github.com/YouEclipse/wakatime-go
Quick start
import (
"github.com/YouEclipse/wakatime-go/pkg/wakatime"
)
func main() {
apiKey := os.Getenv("WAKATIME_API_KEY")
client := wakatime.NewClient(apiKey, &http.Client{})
ctx := context.Background()
query := &wakatime.StatsQuery{}
stats, err := client.Stats.Current(ctx, wakatime.RangeLast7Days, query)
...
}
Features v0.1.0
TODOs
...
License
Apache 2.0
Directories
¶
pkg
|
|
|
|
Click to show internal directories.
Click to hide internal directories.