Skip to content

nattokin/go-backlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

349 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-backlog

Go Reference Go Report Card Test codecov License: MIT

Go client library for Nulab Backlog API

Features

  • Type-safe option builders — Filter and configure requests using strongly-typed option methods (e.g. WithKeyword, WithCount, WithOrder), avoiding raw string/map parameters.
  • Idiomatic Go structs — API responses are mapped to Go structs with proper types (time.Time, typed constants, etc.) instead of raw JSON.
  • Context support — Every API method accepts context.Context for cancellation and timeout control.
  • Structured error types — Errors are returned as typed values (e.g. *APIResponseError for API errors, *ValidationError for invalid arguments), enabling precise handling with errors.As.

Requirements

  • Go >= 1.23

Installation

go get github.com/nattokin/go-backlog

Examples

c, err := backlog.NewClient(
    os.Getenv("BACKLOG_BASE_URL"),
    os.Getenv("BACKLOG_TOKEN"),
)

// Get all Wiki pages in a project.
wikis, err := c.Wiki.All(context.Background(), "MYPROJECT")

// Filter by keyword using an option.
wikis, err = c.Wiki.All(context.Background(), "MYPROJECT",
    c.Wiki.Option.WithKeyword("design"),
)

More examples can be found in the examples/ directory and on pkg.go.dev.

Supported API endpoints

Client.Space

Client.Space.Activity

Client.Space.Attachment

Client.User

  • Get User List - Returns a list of users in your space.
  • Get User - Returns information about a specific user.
  • Add User - Adds new user to the space. "Project Administrator" cannot add "Admin" user. You can't use this API at backlog.com space.
  • Update User - Updates information about a user (Note: Not available at backlog.com).
  • Delete User - Deletes a user from the space (Note: Not available at backlog.com).
  • Get Own User - Returns information about the currently authenticated user.

Client.User.Activity

Client.Project

Client.Project.Activity

Client.Project.User

Client.Issue

Client.Issue.Attachment

Client.PullRequest.Attachment

Client.Wiki

Client.Wiki.Attachment

License

The license of this project is MIT license.

About

Go client library for Nulab Backlog API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages