查詢餘額
POST http://{server}/api/hk/sms/balance
參數字段要求是否必填樣例
user11位Y85255555555
pwd3-16位Y000000
正常響應:

{"msg":"您的余额为:99999.400","code":"200"}

異常響應:

{"msg":"請聯繫管理員IP加白,您的IP*.*.*.*","code":"301"}

{"msg":"賬號密碼驗證失敗!","code":"302"}

{"msg":"異常錯誤","code":"400"}

SMS發送
POST http://{server}/api/hk/sms/smsSend
參數字段要求是否必填樣例
user11位Y85255555555
pwd3-16位Y000000
sendID1-6位(需提前申請)NTEST
phone單次最多提交一萬個手機號,已逗號隔開Y85255555555,85266666666
msg1-1000,長度不同收費單條價格不同Y測試一下,發送信息
sendtimesUTC+8N2020-01-01 12:00:00
正常響應:

{"msg":"提交成功!","code":"200","jobID":"1003120"}

異常響應:

{"msg":"請聯繫管理員IP加白,您的IP*.*.*.*","code":"301"}

{"msg":"賬號密碼驗證失敗!","code":"302"}

{"msg":"賬號餘額不足!","code":"303"}

{"msg":"異常錯誤","code":"400"}

MMS發送
POST http://{server}/api/hk/sms/mmsSend
參數字段要求是否必填樣例
user11位Y85255555555
pwd3-16位Y000000
sendID1-6位(需提前申請)NTEST
phone單次最多提交一萬個手機號,已逗號隔開Y85255555555,85266666666
msg1-1000,長度不同收費單條價格不同Y測試一下,發送信息
sendtimesUTC+8N2020-01-01 12:00:00
fileImgID圖片需先傳入平台,平台返回IDY100120
正常響應:

{"msg":"提交成功!","code":"200","jobID":"1003123"}

異常響應:

{"msg":"請聯繫管理員IP加白,您的IP*.*.*.*","code":"301"}

{"msg":"賬號密碼驗證失敗!","code":"302"}

{"msg":"賬號餘額不足!","code":"303"}

{"msg":"異常錯誤","code":"400"}

OTP發送
POST http://{server}/api/hk/sms/otp
參數字段要求是否必填樣例
user11位Y85255555555
pwd3-16位Y000000
sendID1-6位(需提前申請)NTEST
phone單個號碼,需要添加國標號Y85255555555
msg1-76位Y您驗證碼為:000000
tid模板ID,提前設定N1
正常響應:

{"msg":"提交成功!","code":"200","jobID":"1003121"}

異常響應:

{"msg":"请联系管理员IP加白,您的IP*.*.*.*","code":"301"}

{"msg":"账号密码验证失败!","code":"302"}

{"msg":"異常錯誤","code":"400"}

結果查詢
POST http://{server}/api/hk/sms/msg_info
參數字段要求是否必填樣例
user11位Y85255555555
pwd3-16位Y000000
jobID提交返回jobIDY1003121
正常響應:

{"msg":"總共1條,成功發送1條!","code":"200"}

異常響應:

{"msg":"请联系管理员IP加白,您的IP*.*.*.*","code":"301"}

{"msg":"账号密码验证失败!","code":"302"}

{"msg":"異常錯誤","code":"400"}