A client library for Apigee to create and delete a consumer key and consumer secret. Purpose-built for the Vault Apigee secrets engine.
- Go
- Git
- Apigee X and Google Cloud CLI or
- Apigee Edge
Apigee X
gcloud auth login
export APIGEE_OAUTH_TOKEN=$(gcloud auth print-access-token)
Apigee Edge
export APIGEE_HOST=<APIGEE_HOST>
export APIGEE_USERNAME=<APIGEE_USERNAME>
export APIGEE_PASSWORD=<APIGEE_PASSWORD>
export APIGEE_ORG_NAME=<APIGEE_ORG_NAME>
export APIGEE_DEVELOPER_EMAIL=<APIGEE_DEVELOPER_EMAIL>
export APIGEE_APP_NAME=<APIGEE_APP_NAME>
export APIGEE_API_PRODUCTS=["<APIGEE_API_PRODUCT>"]
git clone https://github.com/bstraehle/apigee-client-go.git
cd apigee-client-go
go build client.go credentials.go credentials_test.go
go test -v