go-toggl is Go library for accessing Toggl API.
Documentation: http://godoc.org/github.com/gedex/go-toggl/toggl
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.
- go-github in which go-toggl mimics the structure.
- Toggl API docs
This library is distributed under the BSD-style license found in the LICENSE.md file.