https://github.com/griffin-stewie/go-backlog
Backlog API Client for Golang.
https://github.com/griffin-stewie/go-backlog
backlog golang
Last synced: 4 months ago
JSON representation
Backlog API Client for Golang.
- Host: GitHub
- URL: https://github.com/griffin-stewie/go-backlog
- Owner: griffin-stewie
- License: mit
- Created: 2016-01-05T13:27:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T13:09:34.000Z (over 8 years ago)
- Last Synced: 2025-10-13T11:24:39.298Z (8 months ago)
- Topics: backlog, golang
- Language: Go
- Size: 35.2 KB
- Stars: 12
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_slice.go
- License: LICENSE
Awesome Lists containing this project
README
# go-backlog
[](https://godoc.org/github.com/griffin-stewie/go-backlog)
[Backlog API](http://developer.nulab-inc.com/ja/docs/backlog/ "Backlog API とは | Backlog | Nulab Developers") Client for Golang.
## Install
```sh
$ go get github.com/griffin-stewie/go-backlog
```
## Usage
```sh
$ go run ./example/main.go
```
```go
// Sample code
package main
import (
"log"
"net/url"
"os"
backlog "github.com/griffin-stewie/go-backlog"
)
func main() {
token := os.Getenv("BACKLOG_TOKEN")
if token == "" {
log.Fatalln("You need Backlog access token.")
}
URL, err := url.Parse("https://YOURSPACE.backlog.jp")
if err != nil {
log.Fatalf("ERROR: %s", err.Error())
}
client := backlog.NewClient(URL, token)
issues, err := client.Issues()
if err != nil {
log.Fatalf("ERROR: %s", err.Error())
}
log.Printf("issues: %#+v", issues)
}
```