https://github.com/pingidentity/pingdirectory-go-client
Go language SDK for the management API of PingDirectory
https://github.com/pingidentity/pingdirectory-go-client
go golang management-api sdk sdk-go
Last synced: 3 months ago
JSON representation
Go language SDK for the management API of PingDirectory
- Host: GitHub
- URL: https://github.com/pingidentity/pingdirectory-go-client
- Owner: pingidentity
- License: apache-2.0
- Created: 2023-01-11T18:29:25.000Z (over 2 years ago)
- Default Branch: v10200
- Last Pushed: 2025-03-14T16:48:40.000Z (4 months ago)
- Last Synced: 2025-03-26T18:57:24.436Z (4 months ago)
- Topics: go, golang, management-api, sdk, sdk-go
- Language: Go
- Homepage: https://pkg.go.dev/github.com/pingidentity/pingdirectory-go-client
- Size: 19.4 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)
```