获取国内短信日消耗

HTTP 头信息

Accept:application/json;charset=utf-8;
Content-Type:application/x-www-form-urlencoded;charset=utf-8;

请求

URL:https://sms.yunpian.com/v2/sms/get_total_fee.json
注意:海外服务器地址 us.yunpian.com
访问方式:POST

备注:今日数据通过此接口查询不到,请参考云片后台消费明细

请求参数

参数名 类型 是否必须 描述 示例
apikey string 用户唯一标识,在”账号设置”-“子帐号管理”中查看 9b11127a9701975c734b8aee81ee3526
date string 日期,格式 yyyy-MM-dd 2017-03-30

响应

名称 类型 描述
totalCount integer 总计短信条数
totalFee string 花费费用
totalSuccessCount integer 成功短信条数
totalFailedCount integer 失败短信条数
totalUnknownCount integer 未知短信条数

Json 响应示例:

{
  "totalCount": 62,
  "totalFee": "3.100",
  "totalSuccessCount": 53,
  "totalFailedCount": 1,
  "totalUnknownCount": 8
}