Go
package example
import (
context "context"
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>",
),
)
client.Branding.Phone.Providers.Get(
context.TODO(),
"id",
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.providers.get("id");
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.providers.get("id");
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/branding/phone/providers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenantDomain}/api/v2/branding/phone/providers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/branding/phone/providers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://{tenantDomain}/api/v2/branding/phone/providers/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/branding/phone/providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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"
}電話プロバイダーを取得
電話プロバイダーの詳細を取得します。含めるフィールドまたは除外するフィールドの一覧を指定することもできます。
GET
https://{tenantDomain}/api/v2
/
branding
/
phone
/
providers
/
{id}
Go
package example
import (
context "context"
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>",
),
)
client.Branding.Phone.Providers.Get(
context.TODO(),
"id",
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.providers.get("id");
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.providers.get("id");
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/branding/phone/providers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenantDomain}/api/v2/branding/phone/providers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/branding/phone/providers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://{tenantDomain}/api/v2/branding/phone/providers/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/branding/phone/providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
Required string length:
1 - 255レスポンス
電話プロバイダーを正常に取得しました。
電話プロバイダーの設定スキーマ
電話通知プロバイダーの名前
利用可能なオプション:
twilio, custom Required string length:
1 - 100このプロバイダーで受信可能な通知の種類を示します。
利用可能なオプション:
phone Maximum string length:
100- Option 1
- Option 2
Show child attributes
Show child attributes
プロバイダーの作成日時(ISO 8601 形式)
Maximum string length:
27プロバイダーが有効(false)か無効(true)か。
Required string length:
1 - 255テナント名
Required string length:
1 - 255プロバイダーの最終更新日時(ISO 8601 形式)
Maximum string length:
27⌘I