Skip to content

nattokin/go-backlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

339 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-backlog

GoDoc Go Report Card Test codecov License: MIT

Go client library for Nulab Backlog API

Feature

  • You can request each API endpoint using the Backlog API client created from the API base URL and token.
  • Converts API responses to idiomatic Go structs.
  • Structs are provided for all API endpoints and responses.

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.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.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