Post请求示例
urlencode
userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d×tamp=0803192020&retsize=300
JSON
{"userid":"J10003","pwd":"26dad7f364507df18f3841cc9c4ff94d","timestamp":"0803192020","retsize":300}
XML
<?xml version=1.0 encoding=utf-8?>
<moreq>
<userid>J10003</userid>
<pwd>26dad7f364507df18f3841cc9c4ff94d </pwd>
<timestamp>0803192020</timestamp>
<retsize>300</retsize>
</moreq>
获取成功返回示例
JSON (urlencode与JSON请求都以JSON返回数据)
{
"result":0,
"mos": [
{
"msgid":9223372045854775808,
"mobile":"13800138000",
"spno":"1000457890006",
"exno":"0006",
"rtime":"2016-08-04 17:38:59",
"content":"%b2%e2%ca%d4%b6%cc%d0%c5"
},
{
"msgid":9223372045854895808,
"mobile":"13100131000",
"spno":"1000357890006",
"exno":"0006",
"rtime":"2016-08-04 17:39:50",
"content":"%b2%e2%ca%d4%b6%cc%d0%c5"
}
]
}
XML
<?xml version=1.0 encoding=utf-8?>
<morsp>
<result>0</result>
<mos>
<mo>
<msgid>9223372045854775808</msgid>
<mobile>13800138000</mobile>
<spno>1000457890006</spno>
<exno>0006</exno>
<rtime>2016-08-04 17:38:59</rtime>
<content>%b2%e2%ca%d4%b6%cc%d0%c5</content>
</mo>
<mo>
<msgid>9223372045854895808</msgid>
<mobile>13100131000</mobile>
<spno>1000357890006</spno>
<exno>0006</exno>
<rtime>2016-08-04 17:39:50</rtime>
<content>%b2%e2%ca%d4%b6%cc%d0%c5</content>
</mo>
</mos>
</morsp>
获取失败返回示例
JSON (urlencode与JSON请求都以JSON返回数据)
{
"result":-100999,
"mos":""
}
XML
<?xml version=1.0 encoding=utf-8?>
<morsp>
<result>-100999</result>
<mos></mos>
</morsp>
原文链接:http://www.apkbus.com/blog-898745-63636.html
共同学习,写下你的评论
评论加载中...
作者其他优质文章