https://github.com/kenzo0107/backlog
Backlog API in Go
https://github.com/kenzo0107/backlog
backlog golang
Last synced: about 1 year 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T00:19:11.000Z (about 2 years ago)
- Last Synced: 2025-03-29T16:34:18.384Z (about 1 year ago)
- Topics: backlog, golang
- Language: Go
- Size: 251 KB
- Stars: 26
- Watchers: 3
- 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 [](https://godoc.org/github.com/kenzo0107/backlog) [](https://github.com/kenzo0107/backlog/actions/workflows/test.yml) [](https://github.com/kenzo0107/backlog/actions/workflows/lint.yml)
[](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 main
import (
"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)