Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenzo0107/backlog
Backlog API in Go
https://github.com/kenzo0107/backlog
backlog golang
Last synced: 2 days ago
JSON representation
Backlog API in Go
- Host: GitHub
- URL: https://github.com/kenzo0107/backlog
- Owner: kenzo0107
- License: mit
- Created: 2020-05-16T14:52:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T00:19:11.000Z (7 months ago)
- Last Synced: 2024-06-18T21:43:13.200Z (5 months ago)
- Topics: backlog, golang
- Language: Go
- Size: 251 KB
- Stars: 26
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Backlog API in Go [![GoDoc](https://godoc.org/github.com/kenzo0107/backlog?status.svg)](https://godoc.org/github.com/kenzo0107/backlog) [![test](https://github.com/kenzo0107/backlog/workflows/test/badge.svg?branch=master)](https://github.com/kenzo0107/backlog/actions?query=workflow%3Atest) [![lint](https://github.com/kenzo0107/backlog/workflows/lint/badge.svg?branch=master)](https://github.com/kenzo0107/backlog/actions?query=workflow%3A%22lint%22)
[![codecov](https://codecov.io/gh/kenzo0107/backlog/branch/master/graph/badge.svg)](https://codecov.io/gh/kenzo0107/backlog)
===============This library supports most if not all of the `backlog` REST calls.
## Installing
### *go get*
$ go get -u github.com/kenzo0107/backlog
## Example
### Get my user information
```go
package mainimport (
"fmt"
"os""github.com/kenzo0107/backlog"
)func main() {
c := backlog.New("YOUR API KEY", "YOUR BASE URL")user, err := c.GetUserMySelf()
if err != nil {
fmt.Printf("%s\n", err)
return
}
fmt.Printf("user ID: %d, Name %s\n", user.ID, user.Name)
}
```### Download space icon
```go
func main() {
file, err := os.Create("icon.png")
if err != nil {
fmt.Println(err)
return
}
defer file.Close()c := backlog.New("YOUR API KEY", "YOUR BASE URL")
if err := c.GetSpaceIcon(file); err != nil {
fmt.Println(err)
return
}
}
```## Contributing
You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem.
Before making any Pull Request please run the following:
```
make pr-prep
```This will check/update code formatting, linting and then run all tests
## License
[MIT License](https://github.com/kenzo0107/backlog/blob/master/LICENSE)