YouEclipse / wakatime-go

πŸ•˜ Go library for accessing the WakaTime API

Home Page:https://wakatime.com/developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wakatime-go

[WIP] πŸ•˜ Go library for accessing the Wakatime API

go.dev reference Go

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

About

πŸ•˜ Go library for accessing the WakaTime API

https://wakatime.com/developers

License:Apache License 2.0


Languages

Language:Go 100.0%