您的位置:首页 > 其它

梦网云通讯平台短信查询余额接口get_balance说明POST请求示例

2017-09-11 00:00 387 查看
urlencode

userid=J10003&pwd=26dad7f364507df18f3841cc9c4ff94d×tamp=0803192020

JSON

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

XML

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

<feereq>

<userid>J10003</userid>

<pwd>26dad7f364507df18f3841cc9c4ff94d</pwd>

<timestamp>0803192020</timestamp>

</feereq>

查询成功返回示例

JSON (urlencode与JSON请求都以JSON返回数据)

{

"result":0,

"chargetype":0,

"balance":99885514,

"money":"0.0000"

}

XML

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

<feersp>

<result>0</result>

<chargetype>0</chargetype>

<balance>99885514</balance>

<money>0.0000</money>

</feersp>

查询失败返回示例

JSON (urlencode与JSON请求都以JSON返回数据)

{

"result":-100999,

"chargetype":0,

"balance":0,

"money":"0.0000"

}

XML

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

<feersp>

<result>-100999</result>

<chargetype>0</chargetype>

<balance>0</balance>

<money>0.0000</money>

</feersp>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: