https://github.com/gedex/go-toggl
Go library for accessing Toggl REST API
https://github.com/gedex/go-toggl
Last synced: over 1 year ago
JSON representation
Go library for accessing Toggl REST API
- Host: GitHub
- URL: https://github.com/gedex/go-toggl
- Owner: gedex
- License: bsd-2-clause
- Created: 2013-07-05T17:12:58.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T13:52:07.000Z (almost 11 years ago)
- Last Synced: 2025-03-04T15:22:26.399Z (over 1 year ago)
- Language: Go
- Size: 236 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
go-toggl
========
go-toggl is Go library for accessing Toggl API.
**Documentation:**
**Build Status:** [](https://travis-ci.org/gedex/go-toggl)
## Basic Usage
~~~go
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](./examples) for a complete example.
## Credits
* [go-github](https://github.com/google/go-github) in which go-toggl mimics the structure.
* [Toggl API docs](https://github.com/toggl/toggl_api_docs/)
## License
This library is distributed under the BSD-style license found in the LICENSE.md file.