请求例子:
apirq('sms/sendtpl', {
method: "post",
data: {
"tplname": "waybill_arrive",
"mobile": "18512825951",
"tpldata": {
"num": 2,
"cargo_name": "箱子",
"net_name": "天津",
"waybill_no": "A012463",
"tel": "02888888888"
}
}
})
返回数据结果:
{
"code": 0,
"msg": "调用成功",
"time": "1530673396",
"data": {
"code": 0,
"msg": "发送成功",
"count": 1,
"fee": 0.05,
"unit": "RMB",
"mobile": "18512825951",
"sid": 25714735348
}
}
请求例子(模拟):
apirq('sms/sendtpl', {
method: "post",
data: {
"tplname": "waybill_arrive",
"mobile": "18200509877",
"tpldata": {
"num": 2,
"cargo_name": "箱子",
"net_name": "天津",
"waybill_no": "A012463",
"tel": "02888888888"
}
}
})
返回数据结果:
{
"code": 0,
"msg": "发送成功",
"time": "1530673306",
"data": {
"code": 0,
"sid": -1,
"fee": 0.05,
"count": 1,
"mobile": "18200509877",
"msg": "『调试模拟』发送成功(实际未发送短信)"
}
}