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>"
}Send a test phone notification for the configured template
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>"
}Authorizations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Custom domain to be used for this request
Required string length:
3 - 255Path Parameters
Required string length:
1 - 255Body
application/jsonapplication/x-www-form-urlencoded
Response
The phone testing notification for the template was sent
Resets a phone notification template values
Previous
Get template for New Universal Login Experience
Next
⌘I