Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
phone "github.com/auth0/go-auth0/management/management/branding/phone"
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 := &phone.ListPhoneTemplatesRequestParameters{
Disabled: management.Bool(
true,
),
}
client.Branding.Phone.Templates.List(
context.TODO(),
request,
)
}{
"templates": [
{
"content": {
"body": {
"text": "<string>",
"voice": "<string>"
},
"from": "<string>",
"syntax": "<string>"
},
"disabled": false,
"id": "<string>",
"channel": "<string>",
"customizable": true,
"tenant": "<string>"
}
]
}電話テンプレートを取得する
GET
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
phone "github.com/auth0/go-auth0/management/management/branding/phone"
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 := &phone.ListPhoneTemplatesRequestParameters{
Disabled: management.Bool(
true,
),
}
client.Branding.Phone.Templates.List(
context.TODO(),
request,
)
}{
"templates": [
{
"content": {
"body": {
"text": "<string>",
"voice": "<string>"
},
"from": "<string>",
"syntax": "<string>"
},
"disabled": false,
"id": "<string>",
"channel": "<string>",
"customizable": true,
"tenant": "<string>"
}
]
}⌘I