HTMLメール要素プロパティ定義
curl --request GET \
--url https://api.utage-system.com/v1/element-types/mail/propertiesimport requests
url = "https://api.utage-system.com/v1/element-types/mail/properties"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.utage-system.com/v1/element-types/mail/properties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.utage-system.com/v1/element-types/mail/properties",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.utage-system.com/v1/element-types/mail/properties"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.utage-system.com/v1/element-types/mail/properties")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utage-system.com/v1/element-types/mail/properties")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"global_common_properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
],
"content_common_properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
],
"element_types": [
{
"type": "<string>",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"children_types": [
"<string>"
],
"properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
]
}
]
}
}{
"error": {
"code": "validation_error",
"message": "バリデーションエラーが発生しました"
}
}要素・タイプリファレンス
HTMLメール要素プロパティ定義
指定したHTMLメール要素タイプのプロパティ定義を取得します(認証不要)。
レスポンスの data には以下が含まれます。
global_common_properties: 全要素共通のプロパティcontent_common_properties: コンテンツ要素共通のプロパティelement_types: 指定した各要素タイプのプロパティ定義
types が未指定の場合、または未対応の要素タイプが含まれる場合は 422 を返します。
HTMLメール要素プロパティ定義
curl --request GET \
--url https://api.utage-system.com/v1/element-types/mail/propertiesimport requests
url = "https://api.utage-system.com/v1/element-types/mail/properties"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.utage-system.com/v1/element-types/mail/properties', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.utage-system.com/v1/element-types/mail/properties",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.utage-system.com/v1/element-types/mail/properties"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.utage-system.com/v1/element-types/mail/properties")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utage-system.com/v1/element-types/mail/properties")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"global_common_properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
],
"content_common_properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
],
"element_types": [
{
"type": "<string>",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"children_types": [
"<string>"
],
"properties": [
{
"name": "<string>",
"type": "<string>",
"required": true,
"default": "<unknown>",
"description": "<string>",
"enum": [
"<unknown>"
]
}
]
}
]
}
}{
"error": {
"code": "validation_error",
"message": "バリデーションエラーが発生しました"
}
}⌘I