https://github.com/essentialkaos/go-crowd
Go package for working with Atlassian Crowd REST API
https://github.com/essentialkaos/go-crowd
atlassian-crowd crowd golang
Last synced: 12 months ago
JSON representation
Go package for working with Atlassian Crowd REST API
- Host: GitHub
- URL: https://github.com/essentialkaos/go-crowd
- Owner: essentialkaos
- License: apache-2.0
- Created: 2018-07-31T22:18:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T20:34:17.000Z (over 1 year ago)
- Last Synced: 2024-11-19T20:51:55.099Z (over 1 year ago)
- Topics: atlassian-crowd, crowd, golang
- Language: Go
- Homepage: https://kaos.sh/g/go-crowd.v3
- Size: 154 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Usage example • CI Status • License
`go-crowd` is a Go package for working with [Crowd REST API](https://developer.atlassian.com/server/crowd/crowd-rest-resources/).
> [!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_).**
### Usage example
```go
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)
}
```
### CI Status
| Branch | Status |
|------------|--------|
| `master` (_Stable_) | [](https://kaos.sh/w/go-crowd/ci?query=branch:master) |
| `develop` (_Unstable_) | [](https://kaos.sh/w/go-crowd/ci?query=branch:develop) |
### Contributing
Before contributing to this project please read our [Contributing Guidelines](https://github.com/essentialkaos/.github/blob/master/CONTRIBUTING.md).
### License
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)