qingshangu
qingshangu
采纳率0%
2017-05-17 07:27 阅读 841

梦网云通讯平台单条短信发送接口single_send说明POST请求实例

urlencode

userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d&mobile=13800138000&content=%b2%e2%ca%d4%b6%cc%d0%c5&timestamp=0803192020&svrtype=SMS001
&exno=0006&custid=b3d0a2783d31b21b8573&exdata=exdata000002

JSON

{"userid":"J10003","pwd":"26dad7f364507df18f3841cc9c4ff94d","mobile":"13800138000","content":"%b2%e2%ca%d4%b6%cc%d0%c5","timestamp":"0803192020","svrtype":" SMS001","exno":"0006","custid":"b3d0a2783d31b21b85
73","exdata":"exdata000002"}

XML

<?xml version=1.0 encoding=utf-8?>

J10003
26dad7f364507df18f3841cc9c4ff94d
13800138000
%b2%e2%ca%d4%b6%cc%d0%c5
0803192020
SMS001
0006
b3d0a2783d31b21b8573
exdata000002

发送成功返回示例

JSON (urlencode与JSON请求都以JSON返回数据)

{
"result":0,
"msgid":9223372036854775808,
"custid":"b3d0a2783d31b21b8573"
}

XML

<?xml version=1.0 encoding=utf-8?>

0
9223372036854775808
b3d0a2783d31b21b8573

发送失败返回示例

JSON (urlencode与JSON请求都以JSON返回数据)

{
"result":-100999,
"msgid":0,
"custid":""
}

XML

<?xml version=1.0 encoding=utf-8?>

-100999
0

http://www.monyun.cn/?zG9h4yTS

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享