Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Latest commit

 

History

History
82 lines (54 loc) · 1.75 KB

README.md

File metadata and controls

82 lines (54 loc) · 1.75 KB

Toggl API for golang

Throttle API for toggle

GoDoc Build Status Coverage Status Go Report

Installation

$ go get -u github.com/dougEfresh/gtoggl-api
$ go get -u github.com/dougEfresh/gtoggl

Quick Start

import "github.com/dougEfresh/gtoggl"
import "github.com/dougEfresh/gtoggl-api/gtproject"

func main() {
  thc, err := gtoggl.NewClient("token")
  ...
  tc, err := gtproject.NewClient(thc)
  ...
  project,err := tc.Get(1)
  if err == nil {
    panic(err)
   }
}

The gtoggl clients provides throttling

Usage

See gtoggl cli

Examples

See godoc for more examples

Prerequisites

go 1.x

Tests

$ go test -v ./...

Deployment

Contributing

All PRs are welcome

Authors

License

This project is licensed under the Apache License - see the LICENSE file for details

Acknowledgments

TODO