github.com/gedex/go-toggl/examples

Go library for accessing Toggl REST API


License
BSD-2-Clause
Install
go get github.com/gedex/go-toggl/examples

Documentation

go-toggl

go-toggl is Go library for accessing Toggl API.

Documentation: http://godoc.org/github.com/gedex/go-toggl/toggl

Build Status: Build Status

Basic Usage

c := toggl.NewClient("YOUR_API_TOKEN")
// Get list of workspaces
ws, err := c.Workspaces.List()
if err != nil {
    fmt.Fprintf(os.Stderr, "Error: %s\n", err)
}
for _, w := range ws {
    fmt.Println(w.ID, w.Name)
}

Please see examples for a complete example.

Credits

License

This library is distributed under the BSD-style license found in the LICENSE.md file.