Simple API wrapper for WakaTime built with Go.
This program has learning purposes and aimed only for self education.
Program temporary supports only current user.
Official documentation may be found in the WakaTime website.
Endpoints list:
- Commits
- Durations
- Goals
- Heartbeats (both POST and GET)
- Leaders
- Meta
- Org-Dashboard-Member-Summaries (Not tested)
- Org-Dashboard-Members (Not tested)
- Org-Dashboards (Not tested)
- Orgs
- Private-Leaderboards
- Private-Leaderboards-Leaders (Not tested)
- Projects
- Stats
- Summaries
- User-Agents
- Users
- Install Go
- Clone repo to your computer
go get -u github.com/Dmitriy-Vas/go-waka-cli
- Create new Go file and import
github.com/Dmitriy-Vas/go-waka-cli
- Use built-in method "New" to get wrapper instance
Example:
client := New("put-your-token-here")
user, err := client.Users()
if err != nil {
log.Fatal(err)
}
fmt.Println("Logged in as", user.Data.UserName)