public class Template extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
Template()  | 
Template(Template source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getTemplateData()
Get Variable parameters in the template. 
 | 
Long | 
getTemplateID()
Get Template ID. 
 | 
void | 
setTemplateData(String TemplateData)
Set Variable parameters in the template. 
 | 
void | 
setTemplateID(Long TemplateID)
Set Template ID. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Template()
public Template(Template source)
public Long getTemplateID()
public void setTemplateID(Long TemplateID)
TemplateID - Template ID. If you don’t have any template, please create one.public String getTemplateData()
public void setTemplateData(String TemplateData)
TemplateData - Variable parameters in the template. Please use `json.dump` to format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.
Note: The parameter value cannot be data of a complex type such as HTML.
Example: {"name":"xxx","age":"xx"}Copyright © 2025. All rights reserved.