shijiezo 2014-04-10 02:08 采纳率: 0%
浏览 1142

如何用asp实现短信接口,对方给的接口文件,我要用ASP实现发短信的功能

华唐短信接口
注意:短信手机70个字为一条,小灵通58个字为一条,超过会按两条发送。
提供 Web Service、Http 两种接入模式:
Web Service 服务器接口地址路径: http://www.ht3g.com/htWS/linkWS.asmx
http接口:
注册接口 Reg
输入参数:CorpID-帐号,Pwd-密码,CorpName-企业名称、LinkMan-联系人、Tel-联系电话、Mobile-联系人手机、Email-邮件、Memo-其他备注
输出参数:整数,0:注册成功;-1、帐号已经注册;-2、其他错误;-3、帐号密码不匹配
public int Reg(string CorpID,string Pwd,string CorpName,string LinkMan,string Tel,string Mobile,string Email,string Memo)
{}
http://www.ht3g.com/htWS/Reg.aspx?CorpID=*&Pwd=*&CorpName=*&LinkMan=*&Tel=*&Mobile=*&Email=*&Memo=*

更改密码 UpdPwd
输入参数:CorpID-帐号,Pwd-密码,NewPwd-新密码
输出参数:整数,0:密码修改成功;-1、帐号未注册;-2、其他错误;-3、密码错误
public int UpdPwd(string CorpID,string Pwd,string NewPwd)
{}
http://www.ht3g.com/htWS/UpdPwd.aspx?CorpID=*&Pwd=*&NewPwd=*

修改注册信息 UpdReg
输入参数:CorpID-帐号,Pwd-密码,CorpName-企业名称、LinkMan-联系人、Tel-联系电话、Mobile-联系人手机、Email-邮件、Memo-其他备注
输出参数:整数,0:修改成功;-1、帐号未注册;-2、其他错误;-3、密码错误
public int UpdReg(string CorpID,string Pwd,string CorpName,string LinkMan,string Tel,string Mobile,string Email,string Memo)
{}
http://www.ht3g.com/htWS/UpdReg.aspx?CorpID=*&Pwd=*&CorpName=*&LinkMan=*&Tel=*&Mobile=*&Email=*&Memo=*

查询余额SelSum
输入参数:CorpID-帐号,Pwd-密码
输出参数:整数,>=0,剩余条数;-1、帐号未注册;-2、其他错误;-3、密码错误
public int SelSum(string CorpID,string Pwd)
{}
http://www.ht3g.com/htWS/SelSum.aspx?CorpID=*&Pwd=*

发送短信 Send
输入参数:CorpID-帐号,Pwd-密码,Mobile-发送手机号,Content-发送内容,Cell-子号(可为空),SendTime-定时发送时间(固定14位长度字符串,比如:20060912152435代表2006年9月12日15时24分35秒,可为空)
输出参数:整数,0,发送成功;-1、帐号未注册;-2、其他错误;-3、密码错误;-4、手机号格式不对;-5、余额不足;-6、定时发送时间不是有效的时间格式;-7、禁止2小时以内向同一手机号发送相同短信(该项已经取消);
相同内容不同号码发送的禁用此方法循环发送,批量发送请用batchsend方法。
public int Send(string CorpID,string Pwd,string Mobile,string Content,string Cell,string SendTime)
{}
http://www.ht3g.com/htWS/Send.aspx?CorpID=*&Pwd=*&Mobile=*&Content=*&Cell=*&SendTime=*

群发短信 BatchSend
输入参数:CorpID-帐号,Pwd-密码,Mobile-发送手机号(多个号码以逗号分隔,最多支持600个号码),Content-发送内容,Cell-子号(可为空),SendTime-定时发送时间(固定14位长度字符串,比如:20060912152435代表2006年9月12日15时24分35秒,可为空)
输出参数:整数,0,发送成功进入审核阶段;1、直接发送成功;-1、帐号尚未注册;-2、其他错误;-3、帐号或则密码错误;-4、一次提交信息不能超过600个手机号码;-5、企业号帐户余额不足,请先充值再提交短信息!;-6、定时发送时间不是有效的时间格式;-7、发送短信内容包含黑字典关键字;-8、发送内容需在3到250个字之间;-9、 发送号码为空
返回0和1都是发送成功,请在开发的时候注意此点。
public int BatchSend(string CorpID,string Pwd,string Mobile,string Content,string Cell,string SendTime)
{}
http://www.ht3g.com/htWS/BatchSend.aspx?CorpID=*&Pwd=*&Mobile=*&Content=*&Cell=*&SendTime=*

接收短信 Get
输入参数:CorpID-帐号,Pwd-密码
输出参数:字串,具体字串;-1、帐号未注册;-2、其他错误;-3、密码错误
返回格式:||手机号#上行内容#发送时间#子号||手机号#上行内容#发送时间#子号……
public string Get(string CorpID,string Pwd)
{}
http://www.ht3g.com/htWS/Get.aspx?CorpID=*&Pwd=*

帐号充值 ChargeUp
输入参数:CorpID-帐号,Pwd-密码,CardNo-充值卡卡号,CardPwd-充值卡密码
输出参数:整数,0,充值成功;-1、帐号未注册;-2、其他错误;-3、密码错误;-7、充值失败(可能原因:充值卡号密码不匹配或者卡已经被使用)
public int ChargeUp(string CorpID,string Pwd,string CardNo,string CardPwd)
{}
http://www.ht3g.com/htWS/ChargeUp.aspx?CorpID=*&Pwd=*&CardNo=*&CardPwd=*

注销 UnReg
输入参数:CorpID-帐号,Pwd-密码
输出参数:整数,0,注销成功;-1、帐号未注册;-2、其他错误;-3、密码错误
public int UnReg(string CorpID,string Pwd)
{}
http://www.ht3g.com/htWS/UnReg.aspx?CorpID=*&Pwd=*

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求差集那个函数有问题,有无佬可以解决
    • ¥15 【提问】基于Invest的水源涵养
    • ¥20 微信网友居然可以通过vx号找到我绑的手机号
    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名
    • ¥65 汇编语言除法溢出问题