gtogglapi

package module
v0.0.0-...-7924af4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 0 Imported by: 0

README

Toggl API for golang

Throttle API for toggle

GoDoc Build Status Coverage Status Go Report

Installation

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

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

Documentation

Overview

Package gclient provides access to toggl REST API.

Example:

       import "gopkg.in/dougEfresh/gtoggl.v8"
       import "gopkg.in/dougEfresh/toggl-client.v8"

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL