Skip to content
/ wego Public
forked from desertbit/wego

A go client to the Wekan REST API

License

Notifications You must be signed in to change notification settings

wekan/wego

 
 

Repository files navigation

Wego

A go client for the Wekan REST API

Features

  • Automatic login and token renewal
  • 100% of the official API implemented
  • Implements Wekan REST API v6.97

Sample

// Create client.
// The client will automatically login and renew its token regularly.
c, err := wego.NewClient(wego.Options{
    RemoteAddr: "https://your.wekanboard.com",
    Username:   "user",
    Password:   "secure-password",
})
if err != nil {
    log.Fatal(err)
}

boards, err := c.GetPublicBoards(context.Background())
if err != nil {
    log.Fatal(err)
} 
fmt.Printf("Public boards: %+v\n", boards)

self, err := c.GetCurrentUser(context.Background())
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Self: %+v\n", self)

other, err := c.GetUser(context.Background(), "user-id-of-somebody")
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Other: %+v\n", other)

Known problems

The current state of the Wekan API is slightly brittle.
Some API funcs are implemented according to spec, but do currently not work on my testing instance.
I need to create issues in the Wekan repository for them.

Issues

When you find issues or bugs, please create an issue in this repository and/or submit a PR.

License

MIT, see LICENSE file of this repository.

About

A go client to the Wekan REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%