package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
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 := &management.ListUserGrantsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
UserId: management.String(
"user_id",
),
ClientId: management.String(
"client_id",
),
Audience: management.String(
"audience",
),
}
client.UserGrants.List(
context.TODO(),
request,
)
}[
{
"id": "<string>",
"clientID": "<string>",
"user_id": "<string>",
"audience": "<string>",
"scope": [
"<string>"
]
}
]Retrieve the grants associated with your account.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
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 := &management.ListUserGrantsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
UserId: management.String(
"user_id",
),
ClientId: management.String(
"client_id",
),
Audience: management.String(
"audience",
),
}
client.UserGrants.List(
context.TODO(),
request,
)
}[
{
"id": "<string>",
"clientID": "<string>",
"user_id": "<string>",
"audience": "<string>",
"scope": [
"<string>"
]
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.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.
Number of results per page.
1 <= x <= 100Page index of the results to return. First page is 0.
x >= 0Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
user_id of the grants to retrieve.
client_id of the grants to retrieve.
audience of the grants to retrieve.
Cette page vous a-t-elle été utile ?