public static final class CreateCardSmsTemplateRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateCardSmsTemplateRequest |
build() |
CreateCardSmsTemplateRequest.Builder |
factorys(String factorys)
The mobile phone manufacturer.
|
CreateCardSmsTemplateRequest.Builder |
memo(String memo)
The description of the message template.
|
CreateCardSmsTemplateRequest.Builder |
template(Map<String,?> template)
The content of the card message template.
|
CreateCardSmsTemplateRequest.Builder |
templateName(String templateName)
The name of the card message template.
|
public CreateCardSmsTemplateRequest.Builder factorys(String factorys)
The mobile phone manufacturer. Valid values:
example:If this parameter is not specified, the system automatically specifies a supported mobile phone manufacturer.
XiaoMi
public CreateCardSmsTemplateRequest.Builder memo(String memo)
The description of the message template.
example:Image and Text Template
public CreateCardSmsTemplateRequest.Builder template(Map<String,?> template)
The content of the card message template.
For information about fields such as Template, ExtendInfo, TemplateContent, TmpCard, and Action, see Parameters of card message templates.
Message template content varies based on the template type. For more information, see Sample message templates.
This parameter is required.
example:{ "extendInfo":{ "scene":"HMOVM", "purpose":"2", "userExt":{ "outId":"1234554321" } }, "templateContent":{ "pages":[ { "tmpCards":[ { "type":"IMAGE", "srcType":1, "src":"28755", "actionType":"OPEN_APP", "action":{ "target":"https://s.tb.cn/c.KxzZ", "merchantName":"test-template", "packageName":[ "com.taobao.taobao"], "floorUrl":"https://s.tb.cn/c.KxzZ" }, "positionNumber":1 }, { "type":"TEXT", "content":"this is a test msg.", "isTextTitle":true, "positionNumber":2 }, { "type":"TEXT", "content":"Promotional information", "isTextTitle":false, "positionNumber":3 }, { "type":"BUTTON", "content":"Promotional information,", "actionType":"OPEN_BROWSER", "action":{ "target":"https://www.aliyun.com", "merchantName":"Currently on the Alibaba Cloud official website." }, "positionNumber":4 }] }] }, "cardSignName":"aliyun", "cardType":5 }
public CreateCardSmsTemplateRequest.Builder templateName(String templateName)
The name of the card message template.
This parameter is required.
example:Aliyun Image and Text Template
public CreateCardSmsTemplateRequest build()
Copyright © 2026. All rights reserved.