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条回答

    报告相同问题?

    悬赏问题

    • ¥20 iqoo11 如何下载安装工程模式
    • ¥15 本题的答案是不是有问题
    • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
    • ¥15 C++使用Gunplot
    • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
    • ¥15 matlab数字图像处理频率域滤波
    • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
    • ¥15 ELGamal和paillier计算效率谁快?
    • ¥15 蓝桥杯单片机第十三届第一场,整点继电器吸合,5s后断开出现了问题
    • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?