メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
/
{id}
/
try
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Branding.Phone;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Branding.Phone.Templates.TestAsync(
            id: "id",
            request: new CreatePhoneTemplateTestNotificationRequestContent {
                To = "to"
            }
        );
    }

}
package example

import (
context "context"

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.CreatePhoneTemplateTestNotificationRequestContent{
To: "to",
}
client.Branding.Phone.Templates.Test(
context.TODO(),
"id",
request,
)
}
package com.example.usage;

import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.resources.branding.phone.templates.requests.CreatePhoneTemplateTestNotificationRequestContent;

public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();

client.branding().phone().templates().test(
"id",
CreatePhoneTemplateTestNotificationRequestContent
.builder()
.to("to")
.build()
);
}
}
<?php

namespace Example;

use Auth0\SDK\API\Management\Management;
use Auth0\SDK\API\Management\Branding\Phone\Templates\Requests\CreatePhoneTemplateTestNotificationRequestContent;

$client = new Management(
token: '<token>',
);
$client->branding->phone->templates->test(
'id',
new CreatePhoneTemplateTestNotificationRequestContent([
'to' => 'to',
]),
);
from auth0.management import ManagementClient

client = ManagementClient(
token="<token>",
)

client.branding.phone.templates.test(
id="id",
to="to",
)
require "auth0"

client = Auth0::Management.new(token: "<token>")

client.branding.phone.templates.test(
id: "id",
to: "to"
)
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();
curl --request POST \
--url https://{tenantDomain}/api/v2/branding/phone/templates/{id}/try \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "<string>"
}
'
{
  "message": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ヘッダー

auth0-custom-domain
string

Custom domain to be used for this request

Required string length: 3 - 255

パスパラメータ

id
string
必須
Required string length: 1 - 255

ボディ

to
string
必須

Destination of the testing phone notification

Required string length: 1 - 16
delivery_method
enum<string>

Medium to use to send the notification

利用可能なオプション:
text,
voice
Required string length: 1 - 10

レスポンス

The phone testing notification for the template was sent

message
string
必須