Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pingidentity/pingdirectory-go-client
pingdirectory-go-client
https://github.com/pingidentity/pingdirectory-go-client
Last synced: about 2 months ago
JSON representation
pingdirectory-go-client
- Host: GitHub
- URL: https://github.com/pingidentity/pingdirectory-go-client
- Owner: pingidentity
- License: other
- Created: 2023-01-11T18:29:25.000Z (almost 2 years ago)
- Default Branch: v10100
- Last Pushed: 2024-07-05T16:33:05.000Z (6 months ago)
- Last Synced: 2024-07-05T21:00:58.835Z (6 months ago)
- Language: Go
- Size: 17.1 MB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PingDirectory Go Client
This repository contains a Go client for interacting with the PingDirectory configuration API. It is generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
For a client tied to a specific version, add a version qualifier matching the PingDirectory version to your `require` in `go.mod`.
For example, for a client for PingDirectory 9.1.0.0:
```
require github.com/pingidentity/pingdirectory-go-client/v9100 v9100.6.0
```The `.6.0` refers to the version of this client module.
For detailed documentation, see the `README` and `docs/` folder in the `configurationapi/` folder.
## Example - Creating a Location config object
```
...import client "github.com/pingidentity/pingdirectory-go-client/v9100/configurationapi"
...
addRequest := client.NewAddLocationRequest("MyLocation")
basicAuthContext := context.WithValue(ctx, client.ContextBasicAuth, client.BasicAuth{
UserName: username,
Password: password,
}
apiAddRequest := r.apiClient.LocationApi.AddLocation(basicAuthContext)
apiAddRequest = apiAddRequest.AddLocationRequest(*addRequest)
addResponse, httpResp, err := r.apiClient.LocationApi.AddLocationExecute(apiAddRequest)
```