梦网云平台个性化短信发送接口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 (urlencodeJSON请求都以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 (urlencodeJSON请求都以JSON返回数据)

{

"result":-100999,

"msgid":0,

"custid":""

}

XML

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

<mtrsp>

    <result>-100999</result>

<msgid>0</msgid>

<custid></custid>

</mtrsp>

猜你喜欢

转载自mengwangyun.iteye.com/blog/2393261