package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := map[string]any{
"key": "value",
}
client.Hooks.Secrets.Create(
context.TODO(),
"id",
request,
)
}Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := map[string]any{
"key": "value",
}
client.Hooks.Secrets.Create(
context.TODO(),
"id",
request,
)
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the hook to retrieve
Hashmap of key-value pairs where the value must be a string.
Hook secrets successfully added.
Cette page vous a-t-elle été utile ?