梦网云通讯个性化群发API接口multi_send说明POST实例 [ 技术分享 ]
Post请求示例
urlencode
userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d×tamp=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?>
<userid>J10003</userid>
26dad7f364507df18f3841cc9c4ff94d
0803192020
13800138000
%b2%e2%ca%d4%b6%cc%d0%c5
SMS001
0006
b3d0a2783d31b21b8573
exdata000002
13100131000
%b2%e2%ca%d4%b6%cc%d0%c5
SMS002
0007
b3d0a2783d31b21b8573
exdata000002
发送成功返回示例
JSON (urlencode与JSON请求都以JSON返回数据)
{ "result":0, "msgid":9223372036854775808, "custid":9223372036854775808 }
XML
<?xml version=1.0 encoding=utf-8?>
<result>0</result>
9223372036854775808
9223372036854775808
发送失败返回示例
JSON (urlencode与JSON请求都以JSON返回数据) { "result":-100999, "msgid":0, "custid":"" }
XML
<?xml version=1.0 encoding=utf-8?>
<result>-100999</result>
0
共 0 条回复
pingguoyuan
最后登录:2017-06-13
在线时长:0小时28分
- 粉丝0
- 金钱95
- 威望0
- 积分95