[WIP] ๐ Go library for accessing the Wakatime API
Go version 1.13+
go get github.com/YouEclipse/wakatime-go
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)
...
}
- Commits
- Durations
- Goals
- Heartbeats
- Leaders
- Meta
- Org Dashboard Member Durations
- Org Dashboard Member Summaries
- Org Dashboard Members
- Org Dashboards
- Orgs
- Private Leaderboards
- Private Leaderboards Leaders
- Projects
- Stats
- Summaries
- User Agents
- Users
...