注册 登录
主题 : 梦网云通讯个性化群发接口multi_send说明POST实例
级别: 新手上路
UID: 611005
精华: 0
发帖: 4
可可豆: 22 CB
威望: 22 点
在线时间: 1(时)
注册时间: 2017-04-10
最后登录: 2017-05-17
0 楼:  发表于: 2017-05-17 16:22    发自: Web Page

梦网云通讯个性化群发接口multi_send说明POST实例   


Post请求示例

urlencode

userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d&timestamp=0803192020&multimt=[{"mobile":"13800138000","content":"%b2%e2%ca%d4%b6%cc%d0
%c5","svrtype":"SMS001","exno":"0006","custid":"b3d0a2783d31b21b8573","exdata":"exdata000001"},{"mobile":"13100131000","content":"%b2%e
2%ca%d4%b6%cc%d0%c5","svrtype":"SMS002","exno":"0007","custid":"b3d0a2783d31b21b8573","exdata":"exdata000002"}]

JSON

{"userid":"J10003","pwd":"26dad7f364507df18f3841cc9c4ff94d","timestamp":"0803192020","multimt":[{"mobile":"13800138000","content":"%b2%e2%ca%d4%b6%cc%d0%c5","svrtype":"SMS001","exno":"0006","custid":"b3d0a2783d31b21b8573","exdata":"exdata000001"},{"mobile":"13100131000","content":"%b2%e2%ca%d4%b6%cc%d0%c5","svrtype":"SMS002","exno":"0007","custid":"b3d0a2783d31b21b8573","exdata":"exdata000002"}]}

XML

<?xml version=1.0 encoding=utf-8?>
<mtreq>
    <userid>J10003</userid>
<pwd>26dad7f364507df18f3841cc9c4ff94d </pwd>
<timestamp>0803192020</timestamp>
<multimt>
  <mt>
<mobile>13800138000</mobile>
<content>%b2%e2%ca%d4%b6%cc%d0%c5</content>
<svrtype>SMS001</svrtype>
<exno>0006</exno>
<custid>b3d0a2783d31b21b8573</custid>
<exdata>exdata000002</exdata>
</mt>
<mt>
<mobile>13100131000</mobile>
<content>%b2%e2%ca%d4%b6%cc%d0%c5</content>
<svrtype>SMS002</svrtype>
<exno>0007</exno>
<custid>b3d0a2783d31b21b8573</custid>
<exdata>exdata000002</exdata>
</mt>
</multimt>
</mtreq>

发送成功返回示例

JSON (urlencode与JSON请求都以JSON返回数据)
{
"result":0,
"msgid":9223372036854775808,
"custid":9223372036854775808
}
XML
<?xml version=1.0 encoding=utf-8?>
<mtrsp>
    <result>0</result>
<msgid>9223372036854775808</msgid>
<custid>9223372036854775808</custid>
</mtrsp>

发送失败返回示例

JSON (urlencode与JSON请求都以JSON返回数据)
{
"result":-100999,
"msgid":0,
"custid":""
}

XML
<?xml version=1.0 encoding=utf-8?>
<mtrsp>
    <result>-100999</result>
<msgid>0</msgid>
<custid></custid>
</mtrsp>

级别: 新手上路
UID: 611005
精华: 0
发帖: 4
可可豆: 22 CB
威望: 22 点
在线时间: 1(时)
注册时间: 2017-04-10
最后登录: 2017-05-17
1 楼:  发表于: 2017-05-17 16:57    发自: Web Page
http://www.monyun.cn/?zG9h4yTS
描述
快速回复

关注本帖(如果有新回复会站内信通知您)

发帖、回帖都会得到可观的积分奖励。查看论坛积分规则

按"Ctrl+Enter"直接提交
    顶部