# 发送短信
- 1.发送验证码
~~~[api]
post:/sms/index/vcode
*string:phone=12346789#手机号码
<<<
success
{
"status": true,
"resdata": {
"result": 0,
"errmsg": "OK",
"ext": "",
"sid": "8:PlKAOjsXGeaV6PZAyPO20190128",
"fee": 1
},
"code": "NzNjMm03R2xxKzJsa3pzdE1YQXA5M1NvaHVNR2lJYmdHNHVudnFrVlVqRGw4cVlJ"
}
<<<
error
{
"status": false,
"error": ...
}
~~~
- 2.推送消息
~~~[api]
post:/sms/index/push
*string:phone=12346789#手机号码
*string:tagname=计科#标签名称
<<<
success
{
"status": true,
"resdata": {
"result": 0,
"errmsg": "OK",
"ext": "",
"sid": "8:PlKAOjsXGeaV6PZAyPO20190128",
"fee": 1
}
}
<<<
error
{
"status": false,
"error": ...
}
~~~
- 3.校验验证码是否正确
~~~[api]
post:/sms/index/checkvcode
*string:vcode=123456#验证码
*string:code=abcdefg#验证码校验码
<<<
success
{
"status": true,
"resdata": {
"vcode": 123456
}
}
<<<
error
{
"status": false,
"title": "验证码错误"
}
~~~