Chat App Message サービスメッセージテンプレートの詳細を取得します。
操作説明
QPS 制限
この操作の単一ユーザー QPS 制限は 1 秒あたり 5 回です。この制限を超えると、API 呼び出しがスロットリングされ、ビジネスに影響を与える可能性があります。必要に応じてこの操作を呼び出してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cams:GetChatappTemplateDetail |
get |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| TemplateCode |
string |
任意 |
テンプレートのコード。 |
****4b5c79c9432497a075bdfca36bf5 |
| Language |
string |
必須 |
テンプレートの言語。詳細な言語コードについては、言語コードを参照してください。 |
en_US |
CustWabaId
deprecated
|
string |
任意 |
ISV 顧客の WabaId。 説明
このパラメーターは非推奨です。代わりに CustSpaceId を使用してください。 |
65921621816**** |
| IsvCode |
string |
任意 |
ISV 検証コード。サブアカウントが ISV によって承認されているかどうかを検証するために使用されます。 |
skdi3kksloslikdkkdk |
| CustSpaceId |
string |
必須 |
ISV サブ顧客の SpaceId、または直接顧客のインスタンス ID。 |
28251486512358**** |
| TemplateType |
string |
任意 |
テンプレートタイプ。
|
|
| TemplateName |
string |
任意 |
テンプレートの名前。 |
test_name |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
744c4b5c79c9432497a075bdfca3**** |
| Code |
string |
応答コード。
|
OK |
| Message |
string |
エラーメッセージ。 |
User not authorized to operate on the specified resource. |
| Data |
object |
返却されたデータ。 |
{ "category": "ACCOUNT_UPDATE", "name": "account_notice", "language": "en_US", "templateCode": "744c4b5c79c9432497a075bdfca3****", "auditStatus": "APPROVED", "components": "[{\"type\":\"BODY\",\"text\":\"body_text$(textVariable)\"},{\"type\":\"HEADER\",\"formate\":\"IMAGE\",\"url\":\"$(linkVariable)\"},{\"type\":\"FOOTER\",\"text\":\"footer-text\"},{\"type\":\"BUTTONS\",\"buttons\":[{\"type\":\"PHONE_NUMBER\",\"text\":\"phone-button-text\",\"phone_number\":\"+861388888****\"},{\"type\":\"URL\",\"text\":\"url-button-text\",\"url\":\"https://www.website.com/\"}]}]", "example": "{\"textVariable\": \"text\", \"linkVariable\": \"link\"}" } |
| Category |
string |
WhatsApp テンプレートカテゴリ。有効な値:
Viber テンプレートカテゴリ。有効な値:
説明
Viber テンプレートの値が text_video_button の場合、ボタンは Web ページを開きません。代わりに、Web ページ内で現在のメッセージの動画を開きます。そのため、ボタンの URL にアドレス情報を入力する必要はありません。 |
UTILITY |
| TemplateCode |
string |
テンプレートのコード。 |
744c4b5c79c9432497a075bdfca3**** |
| Name |
string |
テンプレートの名前。 |
hello_whatsapp |
| Language |
string |
テンプレートの言語。詳細な言語コードについては、言語コードを参照してください。 |
en_US |
| Example |
object |
変数の例。 |
|
|
string |
テンプレート変数に対応する実際の値。パラメーターのフォーマットは JSON です。 |
{\"textVariable\":\"text\",\"linkVariable\":\"https://image.developer.aliy\"} |
|
| AuditStatus |
string |
審査ステータス。有効な値:
|
pass |
| Components |
array<object> |
メッセージテンプレートコンポーネントのリスト。 |
|
|
array<object> |
メッセージテンプレートコンポーネント。 |
||
| Type |
string |
コンポーネントタイプ。
説明
|
BODY |
| Url |
string |
メディア URL。 |
https://image.developer.aliyundoc.com |
| Text |
string |
送信するメッセージのテキスト。 |
hello |
| Caption |
string |
ファイルの説明。 |
example |
| FileName |
string |
ファイル名。 |
example |
| Format |
string |
フォーマット。 |
TEXT |
| Buttons |
array<object> |
ボタンリスト。BUTTONS コンポーネントにのみ適用されます。 説明
WhatsApp ボタン数量ルール:
|
|
|
array<object> |
コンポーネントリスト。 |
||
| Type |
string |
ボタンタイプ。
説明
|
PHONE_NUMBER |
| Text |
string |
ボタンの表示名。 |
example |
| PhoneNumber |
string |
電話番号。ボタンタイプが PHONE_NUMBER の場合にのみ有効です。 |
+861398745**** |
| Url |
string |
リンクボタンをクリックしたときにアクセスされる URL。 |
https://example.com |
| UrlType |
string |
URL タイプ。
|
static |
| SignatureHash |
string |
WhatsApp テンプレートの Category が Authentication かつ Button Type が ONE_TAP の場合に必須。WhatsApp がアプリケーションを起動するための署名ハッシュ値。 |
2993839 |
| PackageName |
string |
WhatsApp テンプレートの Category が Authentication かつ Button Type が ONE_TAP の場合に必須。WhatsApp がアプリケーションを起動するためのパッケージ名。 |
com.aliyun |
| AutofillText |
string |
WhatsApp テンプレートの Category が Authentication かつ Button Type が ONE_TAP の場合に必須。WhatsApp 自動入力操作のボタンテキスト。 |
Autofill |
| IsOptOut |
boolean |
Category が Marketing かつ Button タイプが QUICK_REPLY の WhatsApp テンプレートで有効です。ボタンがマーケティングオプトアウトボタンであることを示します。顧客がこのボタンをクリックし、Chat App Message サービスプラットフォームで送信コントロール操作が設定されている場合、以降のマーケティングメッセージは顧客に送信されません。 |
false |
| ExtendAttrs |
object |
拡張属性。 |
|
| NextTemplateCode |
string |
次のテンプレートコード。 |
20939920093993 |
| NextTemplateName |
string |
次のテンプレート名。 |
abc |
| NextLanguageCode |
string |
次のテンプレート言語。 |
en |
| Action |
string |
イベントタイプ。 |
nextCard |
| IntentCode |
string |
意図コード。 |
test |
| CouponCode |
string |
クーポンコード。 |
202039ksjs |
| FlowId |
string |
フロー ID。 |
3838292983 |
| FlowAction |
string |
フローデータイベントタイプ。有効な値:
|
NAVIGATE |
| NavigateScreen |
string |
ナビゲート画面。FlowAction が NAVIGATE の場合に必須です。 |
DETAILS |
| SupportedApps |
array<object> |
ONE_TAP/ZERO_TAP 検証コードでサポートされるアプリケーション。 |
|
|
object |
ONE_TAP/ZERO_TAP 検証コードでサポートされるアプリケーション。 |
||
| SignatureHash |
string |
パッケージ署名ハッシュ。 |
29kdkeik939 |
| PackageName |
string |
パッケージ名。 |
com.test |
| ThumbUrl |
string |
Viber 動画メッセージのサムネイル。 |
https://img.png |
| Duration |
integer |
Viber 動画メッセージの動画持続時間。有効な値: 0 ~ 600。 |
50 |
| FileType |
string |
Viber ファイルメッセージのファイルタイプ。 |
docx |
| Latitude |
string |
位置の緯度。 |
28.001 |
| Longitude |
string |
位置の経度。 |
120.002 |
| LocationName |
string |
位置名。 |
hangzhou |
| LocationAddress |
string |
位置アドレス。 |
hangzhou |
| AddSecretRecommendation |
boolean |
Category が Authentication かつ Component Type が Body の WhatsApp テンプレートで有効です。Body の上に検証コードを他者と共有しないことを推奨するメッセージを表示します。 |
false |
| CodeExpirationMinutes |
integer |
WhatsApp Authentication テンプレートの検証コード有効期間(分単位)。Category が Authentication かつ Component Type が Footer の WhatsApp メッセージの場合にのみ有効です。この情報は Footer の位置に表示されます。 |
5 |
| hasExpiration |
boolean |
LTO テンプレートでクーポンコードに有効期限の時間があるかどうかを指定します。 |
true |
| OfferExpirationTimeMs |
string |
LTO テンプレートのクーポンコード有効期限変数。 |
$(offerExpirationTimeMs) |
| Cards |
array<object> |
カルーセルカードリスト。 |
|
|
array<object> |
カルーセルテンプレートカードリスト。 |
||
| CardComponents |
array<object> |
カードコンポーネントリスト。 |
|
|
array<object> |
カルーセルカード内のコンポーネントリスト。 |
||
| Type |
string |
コンポーネントタイプ。 |
HEADER |
| Text |
string |
カードテキストコンテンツ。 |
Body |
| Url |
string |
Web URL。 |
https://aliyun.com |
| Format |
string |
カルーセルテンプレートの Header タイプ。IMAGE と VIDEO のみサポートされます。すべてのカードは同じ Header タイプである必要があります。 |
HEADER |
| Buttons |
array<object> |
カードボタンリスト。 |
|
|
object |
ボタンオブジェクト。 |
||
| Type |
string |
カルーセルテンプレートのボタンタイプ。有効な値: URL、PHONE_NUMBER、QUICK_REPLY。 |
URL |
| Text |
string |
ボタンコンテンツ。 |
example |
| Url |
string |
ボタンをクリックしたときにアクセスされる URL。 |
https://aliyun.com |
| UrlType |
string |
URL タイプ。有効な値:
|
static |
| PhoneNumber |
string |
電話番号。 |
+861380005**** |
| TemplateType |
string |
テンプレートタイプ。
|
|
| QualityScore |
string |
テンプレート品質。
|
GREEN |
| MessageSendTtlSeconds |
integer |
WhatsApp 認証テンプレートでメッセージを送信する際のメッセージ有効期間。 |
120 |
| Reason |
string |
審査中にテンプレートが却下された理由。 |
None |
| AccessDeniedDetail |
string |
アクセス拒否の詳細。 |
None |
例
成功レスポンス
JSONJSON
{
"RequestId": "744c4b5c79c9432497a075bdfca3****",
"Code": "OK",
"Message": "User not authorized to operate on the specified resource.",
"Data": {
"Category": "UTILITY",
"TemplateCode": "744c4b5c79c9432497a075bdfca3****",
"Name": "hello_whatsapp",
"Language": "en_US",
"Example": {
"key": "{\\\"textVariable\\\":\\\"text\\\",\\\"linkVariable\\\":\\\"https://image.developer.aliy\\\"}"
},
"AuditStatus": "pass",
"Components": [
{
"Type": "BODY",
"Url": "https://image.developer.aliyundoc.com",
"Text": "hello",
"Caption": "example",
"FileName": "example",
"Format": "TEXT",
"Buttons": [
{
"Type": "PHONE_NUMBER",
"Text": "example",
"PhoneNumber": "+861398745****",
"Url": "https://example.com\n",
"UrlType": "static",
"SignatureHash": "2993839",
"PackageName": "com.aliyun",
"AutofillText": "Autofill",
"IsOptOut": false,
"ExtendAttrs": {
"NextTemplateCode": "20939920093993",
"NextTemplateName": "abc",
"NextLanguageCode": "en",
"Action": "nextCard",
"IntentCode": "test"
},
"CouponCode": "202039ksjs",
"FlowId": "3838292983",
"FlowAction": "NAVIGATE",
"NavigateScreen": "DETAILS",
"SupportedApps": [
{
"SignatureHash": "29kdkeik939",
"PackageName": "com.test"
}
]
}
],
"ThumbUrl": "https://img.png",
"Duration": 50,
"FileType": "docx",
"Latitude": "28.001",
"Longitude": "120.002",
"LocationName": "hangzhou",
"LocationAddress": "hangzhou",
"AddSecretRecommendation": false,
"CodeExpirationMinutes": 5,
"hasExpiration": true,
"OfferExpirationTimeMs": "$(offerExpirationTimeMs)",
"Cards": [
{
"CardComponents": [
{
"Type": "HEADER",
"Text": "Body",
"Url": "https://aliyun.com",
"Format": "HEADER",
"Buttons": [
{
"Type": "URL",
"Text": "example",
"Url": "https://aliyun.com",
"UrlType": "static",
"PhoneNumber": "+861380005****"
}
]
}
]
}
]
}
],
"TemplateType": "WHATSAPP",
"QualityScore": "GREEN",
"MessageSendTtlSeconds": 120,
"Reason": "None"
},
"AccessDeniedDetail": "None"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Product.Unsubscript | You have not subscribed to the specified product. | |
| 400 | Ram.PermissionDeny | You are not authorized to perform the operation. | |
| 400 | System.LimitControl | The system is under flow control. | |
| 400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。