====JSON格式====
^名称 ^类型 ^必填 ^注释^
|name |str |否 |短信模板名称 |
|content |str |是 |短信正文|
|id |int |是 |短信模板id|
|createTime |date |否 |短信模板创建时间|
|marks |str |否 |短信模板备注|
|sign_info |obj |否 |短信签名内容|
|text_info |obj |否 |短信正文内容|
====获取短信模板列表====
GET /api/v1/smstemplist.json
**调用者权限**
管理员
**调用示例**
curl https://www.bangwo8.com/api/v1/smstemplist.json \
-v -u {account}:{password}
**返回值示例**
Status: 200 OK
Status: 200 OK
{
"code": "0",
"message": "success",
"data": {
"page": "1",
"pageSize": "300",
"total": "6",
"templates": [
{
"name": "618活动快到期的用户续费提醒",
"content": "亲爱的帮我吧远程个人版用户,您好!您的会员即将到期,618大促正在进行中!续费远程产品可享最高五折优惠,还有额外的赠送年限,限时折扣等您来拿!抓住机会,立即续费,省钱更省心!详情请咨询客服或访问官网。别错过哦!拒收请回复R",
"id": "650",
"createTime": "2024-06-19 16:38:39",
"marks": "快到期的用户618活动续费提醒",
"sign_info": {
"name": "帮我吧",
"remarks": "系统默认短信签名",
"sign_id": "22352"
},
"text_info": {
"name": "618活动即将到期的续费提醒",
"content": "亲爱的帮我吧远程个人版用户,您好!您的会员即将到期,618大促正在进行中!续费远程产品可享最高五折优惠,还有额外的赠送年限,限时折扣等您来拿!抓住机会,立即续费,省钱更省心!详情请咨询客服或访问官网。别错过哦!拒收请回复R",
"remarks": "",
"text_id": "2188842"
}
}
]
}
}
====发送短信====
POST /api/v1/sendsms.json
**调用者权限**
管理员
**调用示例**
curl https://www.bangwo8.com/api/v1/customergroups.json \
-v -u {account}:{password} -H "Content-Type: application/json" \
-X POST -d '{"tpl_id":"205","mobile":"176xxxxx764","content":"您的验证码是:23**232。请不要把验证码泄露给其他人。" }'
**返回值示例**
Status: 200 OK
Status: 200 OK
{
"code": "0",
"message": "success",
"data": []
}