Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toggl/go-basecamp
This project implements a golang client library for the Basecamp API
https://github.com/toggl/go-basecamp
backend
Last synced: about 2 months ago
JSON representation
This project implements a golang client library for the Basecamp API
- Host: GitHub
- URL: https://github.com/toggl/go-basecamp
- Owner: toggl
- License: bsd-3-clause
- Created: 2014-02-27T14:31:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T11:02:11.000Z (over 3 years ago)
- Last Synced: 2024-03-26T07:22:54.529Z (10 months ago)
- Topics: backend
- Language: Go
- Size: 8.79 KB
- Stars: 4
- Watchers: 24
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-basecamp
=====
This project implements a [Go](http://golang.org) client library for the [Basecamp API](https://github.com/basecamp/bcx-api/)Installing
----------
Run
```bash
go get github.com/toggl/go-basecamp
```Example usage:
```go
package mainimport (
"github.com/toggl/go-basecamp"
"log"
)func main() {
var (
err error
accounts []*basecamp.Account
projects []*basecamp.Project
people []*basecamp.Person
)c := basecamp.Client{AccessToken: ""}
if accounts, err = c.GetAccounts(); err != nil {
log.Printf("ERROR %q", err)
return
}
if projects, err = c.GetProjects(accounts[0].Id); err != nil {
log.Printf("ERROR %q", err)
return
}if people, err = c.GetPeople(accounts[0].Id); err != nil {
log.Printf("ERROR %q", err)
return
}log.Println(projects)
log.Println(people)
}
```