package example
import (
client "github.com/auth0/go-auth0/management/client"
option "github.com/auth0/go-auth0/management/option"
context "context"
phone "github.com/auth0/go-auth0/management/branding/phone"
management "github.com/auth0/go-auth0/management"
)
func do() () {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Branding.Phone.Providers.List(
context.TODO(),
&phone.ListBrandingPhoneProvidersRequestParameters{
Disabled: management.Bool(
true,
),
},
)
}{
"providers": [
{
"name": "twilio",
"id": "<string>",
"tenant": "<string>",
"channel": "phone",
"disabled": true,
"configuration": {
"sid": "<string>",
"delivery_methods": [
"text"
],
"default_from": "<string>",
"mssid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified.
package example
import (
client "github.com/auth0/go-auth0/management/client"
option "github.com/auth0/go-auth0/management/option"
context "context"
phone "github.com/auth0/go-auth0/management/branding/phone"
management "github.com/auth0/go-auth0/management"
)
func do() () {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Branding.Phone.Providers.List(
context.TODO(),
&phone.ListBrandingPhoneProvidersRequestParameters{
Disabled: management.Bool(
true,
),
},
)
}{
"providers": [
{
"name": "twilio",
"id": "<string>",
"tenant": "<string>",
"channel": "phone",
"disabled": true,
"configuration": {
"sid": "<string>",
"delivery_methods": [
"text"
],
"default_from": "<string>",
"mssid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Whether the provider is enabled (false) or disabled (true).
Phone providers have been successfully retrieved.
Show child attributes
このページは役に立ちましたか?