Skip to content

About

๐Ÿ•˜ Go library for accessing the WakaTime API

Resources

Stars

0 stars

Watchers

0 watching

Forks

ย 
ย 

Latest commit

ย 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages