C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Branding.Phone;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Branding.Phone.Providers.ListAsync(
new ListBrandingPhoneProvidersRequestParameters {
Disabled = true
}
);
}
}
package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.ListBrandingPhoneProvidersRequestParameters{
Disabled: management.Bool(
true,
),
}
mgmt.Branding.Phone.Providers.List(
context.TODO(),
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.branding.phone.types.ListBrandingPhoneProvidersRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.branding().phone().providers().list(
ListBrandingPhoneProvidersRequestParameters
.builder()
.disabled(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Branding\Phone\Providers\Requests\ListBrandingPhoneProvidersRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->providers->list(
new ListBrandingPhoneProvidersRequestParameters([
'disabled' => true,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.providers.list(
disabled=True,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.providers.list(disabled: true)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.providers.list({
disabled: true,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.providers.list({
disabled: true,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/branding/phone/providers \
--header 'Authorization: Bearer <token>'{
"providers": [
{
"channel": "phone",
"configuration": {
"delivery_methods": [],
"sid": "<string>",
"default_from": "<string>",
"mssid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"disabled": true,
"id": "<string>",
"tenant": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Obtenir les fournisseurs de téléphonie de l’image de marque
Récupère une liste des détails des fournisseurs de téléphonie définis pour un tenant. Il est aussi possible de préciser une liste de champs à inclure ou à exclure.
GET
https://{tenantDomain}/api/v2
/
branding
/
phone
/
providers
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Branding.Phone;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Branding.Phone.Providers.ListAsync(
new ListBrandingPhoneProvidersRequestParameters {
Disabled = true
}
);
}
}
package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.ListBrandingPhoneProvidersRequestParameters{
Disabled: management.Bool(
true,
),
}
mgmt.Branding.Phone.Providers.List(
context.TODO(),
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.branding.phone.types.ListBrandingPhoneProvidersRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.branding().phone().providers().list(
ListBrandingPhoneProvidersRequestParameters
.builder()
.disabled(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Branding\Phone\Providers\Requests\ListBrandingPhoneProvidersRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->providers->list(
new ListBrandingPhoneProvidersRequestParameters([
'disabled' => true,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.providers.list(
disabled=True,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.providers.list(disabled: true)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.providers.list({
disabled: true,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.providers.list({
disabled: true,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/branding/phone/providers \
--header 'Authorization: Bearer <token>'{
"providers": [
{
"channel": "phone",
"configuration": {
"delivery_methods": [],
"sid": "<string>",
"default_from": "<string>",
"mssid": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"disabled": true,
"id": "<string>",
"tenant": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Autorisations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de requête
Indique si le fournisseur est activé (false) ou désactivé (true).
Réponse
Les fournisseurs de téléphonie ont été récupérés avec succès.
Show child attributes
Show child attributes
⌘I