你的位置:首页 > 技术支持 > 常见问题

新酷卡HTTP二次开发接口说明

      
[http接口配置说明]
-[power]:=1启用http接口,重启生效
-user: 用户名,后台帐号校验-token:提交Token认证,无需认证可为空
-[send]:从服务器获取信息发送
post数据:{"User":"用户名","Token":"token"}
返回数据:{"nResult":200,"data":[{"type":0短信1彩信,"ID":数据ID,"smsNumber":"发送号码","title":"彩信标题先base64解码后UTF_8ToGB2312","smsContent":"先base64解码后UTF_8ToGB2312"}]}
备注说明:彩信接口必须使用2019-04-18(含)之后的版本
-[update_result]:上报信息发送成功ID
post数据:{"User":"用户名","Token":"token","ID":数据库ID,"type":=0是[send]短信;=1是[phosms]短信,"status":=1是[phosms]发送成功;=2是[phosms]发送失败}
返回数据:{"nResult":200}
-[recv]:上报新短信
post数据:{"User":"用户名","Token":"token","Port":端口号,"phoneNumber":"卡手机号","smsDate":"发送日期","smsNumber":"发送号码","smsContent":"base64编码内容"}
返回数据:{"nResult":200}
-[phonum]:上报端口信息
每间隔60秒强制上报:{"User":"用户名","Token":"token","Data":[{"Portnum":端口号,"Phonumber":"手机号","imsi":"卡用户号","imei":"串码"}]}
端口变化自动上报:{"User":"用户名","Token":"token","Portnum":端口号,"Phonumber":"手机号","imsi":"卡用户号","imei":"串码","state":状态1在线,0离线}
返回数据:{"nResult":200}
-[phosms]:从服务器获取指定号码发送信息
post数据:{"User":"用户名","Token":"token","Phonenum":"多个号码以*号间隔"}
返回数据:{"nResult":200,"data":[{"ID":数据库ID,"Phonenum":"手机号","smsNumber":"发送号码","smsContent":"先base64解码后UTF_8ToGB2312"}]}

配置文件:HttpSMS.xml保存在安装目录Config文件夹下,格式如下:


    http://127.0.0.1:9988/sms/public/index.php?s=/index/Serverapi/GetSMS
 http://127.0.0.1:9988/sms/public/index.php?s=/index/Serverapi/UpdateSMS
 http://127.0.0.1:9988/sms/public/index.php?s=/index/Serverapi/Updatephonums
 http://127.0.0.1:9988/sms/public/index.php?s=/index/Serverapi/GetPhoneSMS
    http://127.0.0.1:9988/sms/public/index.php?s=/index/Serverapi/UpdateResult

注:使用接口时,通道必须先取号。
关闭
181-2408-5118
关注微信立减100元