# 發送短信
- 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": "驗證碼錯誤"
}
~~~