public class CreateCardSmsTemplateRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
factorys
The mobile phone manufacturer.
|
String |
memo
The description of the message template.
|
Map<String,?> |
template
The content of the card message template.
|
String |
templateName
The name of the card message template.
|
| 构造器和说明 |
|---|
CreateCardSmsTemplateRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateCardSmsTemplateRequest |
build(Map<String,?> map) |
String |
getFactorys() |
String |
getMemo() |
Map<String,?> |
getTemplate() |
String |
getTemplateName() |
CreateCardSmsTemplateRequest |
setFactorys(String factorys) |
CreateCardSmsTemplateRequest |
setMemo(String memo) |
CreateCardSmsTemplateRequest |
setTemplate(Map<String,?> template) |
CreateCardSmsTemplateRequest |
setTemplateName(String templateName) |
@NameInMap(value="Factorys") public 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
@NameInMap(value="Memo") public String memo
The description of the message template.
example:Image and Text Template
@NameInMap(value="Template") public 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 }
@NameInMap(value="TemplateName") public String templateName
The name of the card message template.
This parameter is required.
example:Aliyun Image and Text Template
public static CreateCardSmsTemplateRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateCardSmsTemplateRequest setFactorys(String factorys)
public String getFactorys()
public CreateCardSmsTemplateRequest setMemo(String memo)
public String getMemo()
public CreateCardSmsTemplateRequest setTemplate(Map<String,?> template)
public CreateCardSmsTemplateRequest setTemplateName(String templateName)
public String getTemplateName()
Copyright © 2024. All rights reserved.