Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonkpils/go-aha
Aha! API Go library
https://github.com/tonkpils/go-aha
Last synced: 8 days ago
JSON representation
Aha! API Go library
- Host: GitHub
- URL: https://github.com/tonkpils/go-aha
- Owner: Tonkpils
- License: mit
- Created: 2016-07-26T03:20:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-27T14:06:36.000Z (over 8 years ago)
- Last Synced: 2023-03-25T14:16:48.532Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-aha
Go client library for accessing the [Aha! API](http://www.aha.io/api)
## Usage
```go
import "github.com/Tonkpils/go-aha/aha"
```The main entrypoint for the package is the client which can be constructed with `NewClient` or `NewBasicAuthClient`.
Both clients require the Aha! Account Name.```go
client, err := aha.NewClient(nil, "my account")
```### Authentication
#### OAuth2
To use oauth2, provide an `http.Client` as the first argument to `NewClient`. A library like [oauth2](https://github.com/golang/oauth2) provides this functionality.
#### Basic Auth
The Basic Auth Client will use `http.DefaultClient` and send along the username and password.
```go
client, err := aha.NewBasicAuthClient("username", "password", "myaccount")
```## TODO
- [ ] Pagination
- [ ] Response struct and errors
- [ ] Implement all of the APIs
- [ ] Tests## LICENSE
[LICENSE](LICENSE)