Important
This project is no longer actively maintained.
After careful consideration, we’ve decided to sunset development and support for this repository. While it has been a valuable effort, we are no longer able to dedicate the time and resources required to maintain it at the level we consider responsible.
If you are interested in taking over maintenance or building upon this project, you are encouraged to fork it.
We sincerely appreciate everyone who contributed, reported issues, or used this project. Your support made it worthwhile.
Usage example • CI Status • License
go-crowd is a Go package for working with Crowd REST API.
Important
Please note that this package only supports retrieving data from the Crowd API (i.e. you cannot create or modify data with this package).
package main
import (
"fmt"
"github.com/essentialkaos/go-crowd/v3"
)
func main() {
api, err := crowd.NewAPI("https://crowd.domain.com/crowd/", "myapp", "MySuppaPAssWOrd")
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
api.SetUserAgent("MyApp", "1.2.3")
user, err := api.GetUser("john", true)
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Printf("%#v\n", user)
}| Branch | Status |
|---|---|
master (Stable) |
|
develop (Unstable) |
Before contributing to this project please read our Contributing Guidelines.