Installation • Usage example • Build Status • License
go-crowd
is a Go package for working with Crowd REST API.
Note, that this is beta software, so it's entirely possible that there will be some significant bugs. Please report bugs so that we are aware of the issues.
Installation
Make sure you have a working Go 1.17+ workspace (instructions), then:
go get -d github.com/essentialkaos/go-crowd/v3
For update to latest stable release, do:
go get -d -u github.com/essentialkaos/go-crowd/v3
Usage example
package main
import (
"fmt"
"github.com/essentialkaos/go-crowd/v3"
)
func main() {
api, err := crowd.NewAPI("https://crowd.domain.com/crowd/", "myapp", "MySuppaPAssWOrd")
api.SetUserAgent("MyApp", "1.2.3")
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
user, err := api.GetUser("john", true)
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Println("%-v\n", user)
}
Build Status
Branch | Status |
---|---|
master (Stable) |
|
develop (Unstable) |