请求
URL:https://smssh1.253.com/msg/balance/json
请求方式:json 格式封装的字符串,采用 post 方式提交请求
请求协议:http,https
编码格式:utf-8
Content-Type:application/json
参数说明
| 参数名称 | 类型 | 是否必传 | 描述 | 示例 | 
|---|
| account | String | 是 | API 账号,管理后台获取 | “account”:“N9000123” | 
| password | String | 是 | API 密码,管理后台获取(8-16 位) | “Password”:“Chuanglan253” | 
请求示例
{
  "account":"N6000001",
  "password":"123456"
}
响应
参数说明
| 参数名称 | 类型 | 描述 | 示例 | 
|---|
| code | int | 提交响应状态码,返回“0”表示提交成功(详细参考提交响应状态码) | "code":0 | 
| balance | String | 剩余可用条数 | "balance":"953" | 
| time | String | 响应时间 | "time":"20180519161329" | 
| errorMsg | String | 状态码说明(查询成功返回空) | "errorMsg":"" | 
成功返回示例
{
  "code":0,
  "balance":"953",
  "time":"20180524170449",
  "errorMsg":""
}
失败返回示例
{
  "code":"130",
  "msgId":"",
  "time":"20180524170637",
  "errorMsg":"请求参数错误"
}
没有更多了