Skip to content

griffin-stewie/go-backlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-backlog

GoDoc

Backlog API Client for Golang.

Install

$ go get github.com/griffin-stewie/go-backlog

Usage

$ go run ./example/main.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)
}

About

Backlog API Client for Golang.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages