<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0032)http://www.xhsms.com/jiekou.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>短信接口文档api</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META
content=短信,短信网关,短信平台,企业短信,短信接口,企业短信平台,网站短信接口,短信群发,行业短信应用,短信api,短信平台接口,企业短信接口
name=keywords>
<META
content="东时方短信平台(www.woxp.cn)支持HTTP GET/POST WebService接口 发送速度快延时小,到达率高,稳定,操作简单。欢迎来电咨询:010-87670165"
name=description><LINK href="api_files/sfs.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.3091" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width=962 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top align=left width=410><IMG height=76 alt=""
src="api_files/index_03.gif" width=220></TD>
<TD width=566>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=tt1 align=right colSpan=2 height=38><A
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.xhsms.com');"
href="http://www.xhsms.com/jiekou.aspx#">设为首页</A> | <A
onclick="window.external.addFavorite('http://www.xhsms.com','东时方')"
href="http://www.xhsms.com/jiekou.aspx#">加入收藏</A> </TD></TR>
<TR>
<TD style="PADDING-TOP: 4px" vAlign=top align=middle width="3%"
height=38><IMG height=17 alt="" src="api_files/index_06.gif"
width=17></TD>
<TD class=gg vAlign=top align=left
width="97%">我们提供多条短信通道,保证端口稳定性.为客户提供及时快捷的服务.我们的成功离不开您的支持</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=962 align=center border=0>
<TBODY>
<TR>
<TD width=9><IMG height=32 alt="" src="api_files/index_10.gif" width=9></TD>
<TD class=tt14 align=middle width=99 background=api_files/index_11.gif><A
href="http://www.xhsms.com/index.aspx">网站首页</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt14 align=middle width=99 background=api_files/index_11.gif><A
href="http://www.xhsms.com/solution.aspx">解决方案</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt14 align=middle width=99 background=api_files/index_11.gif><A
href="http://www.xhsms.com/jiekou.aspx">短信接口</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt14 align=middle width=129 background=api_files/index_11.gif><A
href="http://www.woxp.cn/" target=_blank>东时方短信平台</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt14 align=middle width=99 background=api_files/index_11.gif><A
href="http://www.xhsms.com/feedback.aspx">客户投诉</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt14 align=middle width=99 background=api_files/index_11.gif><A
href="http://www.xhsms.com/contact.aspx">联系我们</A></TD>
<TD class=tt14 align=middle width=2 background=api_files/index_11.gif><IMG
height=32 src="api_files/index_13.gif" width=2></TD>
<TD class=tt2 align=middle background=api_files/index_11.gif> </TD>
<TD class=tt2 width=2 background=api_files/index_11.gif> </TD>
<TD class=font121 width=188
background=api_files/index_11.gif>咨询热线:010-87670165</TD>
<TD width=13><IMG height=32 alt="" src="api_files/index_16.gif"
width=13></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=962 align=center border=0>
<TBODY>
<TR>
<TD height=12></TD></TR>
<TR>
<TD bgColor=#94c5e1 height=3></TD></TR></TBODY></TABLE>
<SCRIPT src="api_files/showtab.js" type=text/javascript></SCRIPT>
<STYLE type=text/css>.STYLE4 {
FONT-WEIGHT: bold; COLOR: #ff0000; WORD-BREAK: break-all
}
.STYLE5 {
FONT-WEIGHT: bold; COLOR: #ff0000
}
.functionName {
FONT-WEIGHT: bold; COLOR: #ffffff
}
.ws_rect {
BORDER-RIGHT: #e3e9f4 1px solid; BORDER-TOP: #e3e9f4 1px solid; MARGIN: 5px 0px; BORDER-LEFT: #e3e9f4 1px solid; BORDER-BOTTOM: #e3e9f4 1px solid
}
.ParaName {
COLOR: #000000
}
.wb_title {
FONT-WEIGHT: bold; COLOR: #ffffff
}
#sms_api TD {
TEXT-ALIGN: left
}
</STYLE>
<TABLE cellSpacing=0 cellPadding=0 width=960 align=center border=0>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: #bbd7e5 1px solid; BORDER-LEFT: #e9e9e9 1px solid; BORDER-BOTTOM: #bbd7e5 1px solid; TEXT-ALIGN: left"
vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD style="HEIGHT: 19px" vAlign=top align=middle width="100%"
colSpan=2>
<TABLE id=sms_api cellSpacing=0 cellPadding=5 width="100%"
border=0><TBODY>
<TR>
<TD align=middle colSpan=2 height=20>
<DIV id=hotel_server_tab>
<UL>
<LI id=hotel_guest_li_1
onclick=showdiv_inte(div_api_title,hotel_guest_li_1);>短信接口示例
</LI>
<LI id=hotel_guest_li_2
onclick=showdiv_inte(div_http_post,hotel_guest_li_2);>网站HTTP
接口 </LI>
<LI id=hotel_guest_li_3
onclick=showdiv_inte(div_ws_servier,hotel_guest_li_3);>WebService接口</LI></UL></DIV></TD></TR>
<TR>
<TD colSpan=2 height=20>
<DIV id=div_api_title style="DISPLAY: none">
<DIV
style="WORD-BREAK: normal; LINE-HEIGHT: 20px; WORD-WRAP: break-word">
<P><STRONG>简单的介绍短信接口的例子,如有需要可以下载接口演示<BR>发送短信,<=0返回失败.大于0成功条数,个人的。企业ID为0</STRONG><BR>http://gateway.woxp.cn:6630/gb2312/web_api/?x_eid=企业ID&x_uid=账号&x_pwd_md5=登陆密码MD5值&x_ac=10&x_gate_id=300&x_target_no=手机号码&x_memo=短信内容<BR><BR>--x_eid企业代码,个人账号值为0<BR>--x_gate_id值为300.代表组合通道<BR>--x_target_no可以多个号码最多100个每次。之间用[,]分开。例如:15910011001,1591061000,15912341234<BR>--x_memo短信内容70字<BR><STRONG>--查询余额</STRONG>
<BR>http://gateway.woxp.cn:6630/gb2312/web_api/?x_eid=企业ID&x_uid=账号&x_pwd_md5=登陆密码MD5值&x_ac=30&x_gate_id=300<BR><SPAN
class=STYLE5>1. --ASP
调用例子-------------------------------------------------------------------------------------------</SPAN><BR><%<BR>'常用函数<BR>'输入url目标网页地址,返回值getHTTPPage是目标网页的html代码<BR>function
getHTTPPage(url)<BR>dim Http<BR>set
Http=server.createobject("MSXML2.XMLHTTP")<BR>Http.open
"GET",url,false<BR>Http.send()<BR>if Http.readystate<>4
then <BR>exit function<BR>end
if<BR>getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")<BR>set
http=nothing<BR>if err.number<>0 then err.Clear <BR>end
function<BR>Function BytesToBstr(body,Cset)<BR>dim
objstream<BR>set objstream =
Server.CreateObject("adodb.stream")<BR>objstream.Type =