跳到主要内容

QueryUSMSTemplate

调用接口QueryUSMSTemplate查询短信模板

Request Parameters

Parameter nameTypeDescriptionRequired
Actionstring值为:QueryUSMSTemplateYes
AccountIdint项目ID:获取AccountIdYes
TemplateId[]string模板IDYes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint当RetCode不为0时,Message中显示具体错误描述,若RetCode为0,不返回MessageYes
Actionstring操作名称Yes
Messagestring当RetCode不为0时,Message中显示具体错误描述Yes
Dataobject短信模板明细信息,各字段说明详见OutTemplateNo

OutTemplate

Parameter nameTypeDescriptionRequired
TemplateIdstring短信模板IDYes
Purposeint模板类型,选项:1-验证码类 2-通知类 3-会员推广类Yes
TemplateNamestring短信模板名称Yes
Templatestring短信模板内容Yes
Statusint短信模板状态;状态说明:0-待审核,1-审核中,2-审核通过,3-审核未通过,4-被禁用Yes
Remarkstring模板说明Yes
ErrDescstring审核失败原因Yes
CreateTimeint创建时间Yes
Instructionstring模板变量属性说明No

Request Example

curl -X POST https://api.uspeedo.com/api -H 'Content-Type: application/json' -d '{
"Action": "QueryUSMSTemplate",
"AccountId": "1",
"TemplateId": ["UTA190715D9108C"]
}'

Response Example

{
"Action": "QueryUSMSTemplateResponse",
"Message": "",
"Data": {
"Status": 2,
"TemplateName": "Verification code template 01",
"Template": "Your verification code is {1}. Please use it within {2} minutes. Do not disclose it to others.",
"TemplateId": "UTA190715D9108C",
"ErrDesc": "",
"CreateTime": 1566783067
},
"RetCode": 0
}