手记

梦网云通讯获取状态报告API接口get_rpt说明POST请求示例

Post请求示例


urlencode

userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d&timestamp=0803192020&retsize=300


JSON

{"userid":"J10003","pwd":"26dad7f364507df18f3841cc9c4ff94d","timestamp":"0803192020","retsize":300}


XML

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

<rptreq>

   <userid>J10003</userid>

<pwd>26dad7f364507df18f3841cc9c4ff94d </pwd>

<timestamp>0803192020</timestamp>

<retsize>300</retsize>

</rptreq>


获取成功返回示例

JSON (urlencodeJSON请求都以JSON返回数据)

{

"result":0,

"rpts": [

{

"msgid":9223372045854775808,

"custid":"b3d0a2783d31b21b8573",

"pknum":1,

"pktotal":2,

"mobile":"13800138000",

"spno":"1000457890006",

"exno":"0006",

"stime":"2016-08-04 17:38:55",

"rtime":"2016-08-04 17:38:59",

"status":0,

"errcode":"DELIVRD",

"errdesc":"success",

"exdata":"exdata0002"

},

{

"msgid":9223372045854875808,

"custid":"b3d0a2783d31b21b8573",

"pknum":2,

"pktotal":2,

"mobile":"13800138000",

"spno":"1000457890006",

"exno":"0006",

"stime":"2016-08-04 17:38:55",

"rtime":"2016-08-04 17:38:59",

"status":0,

"errcode":"DELIVRD",

"errdesc":"success",

"exdata":"exdata0002"

}

]

}


XML


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

<rptrsp>

<result>0</result>

<rpts>

  <rpt>

    <msgid>9223372045854775808</msgid>

<custid>b3d0a2783d31b21b8573</custid>

<pknum>1</pknum>

<pktotal>2</pktotal>

<mobile>13800138000</mobile>

<spno>1000457890006</spno>

<exno>0006</exno>

<stime>2016-08-04 17:38:55</stime>

<rtime>2016-08-04 17:38:59</rtime>

<status>0</status>

<errcode>DELIVRD</errcode>

<errdesc>success</errdesc>

<exdata>exdata0002</exdata>

</rpt>

<rpt>

    <msgid>9223372045854875808</msgid>

<custid>b3d0a2783d31b21b8573</custid>

<pknum>2</pknum>

<pktotal>2</pktotal>

<mobile>13800138000</mobile>

<spno>1000457890006</spno>

<exno>0006</exno>

<stime>2016-08-04 17:38:55</stime>

<rtime>2016-08-04 17:38:59</rtime>

<status>0</status>

<errcode>DELIVRD</errcode>

<errdesc>success</errdesc>

<exdata>exdata0002</exdata>

     </rpt>

</rpts>

</rptrsp>


获取失败返回示例


JSON (urlencodeJSON请求都以JSON返回数据)

{

"result":-100999,

"rpts":""

}


XML

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

<rptrsp>

   <result>-100999</result>

   <rpts></rpts>

</rptrsp>

 

原文链接:http://www.apkbus.com/blog-898745-63635.html

0人推荐
随时随地看视频
慕课网APP