獲取國內(nèi)短信日消耗
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 注意:海外服務(wù)器地址 us.yunpian.com 訪問方式:POST
備注:今日數(shù)據(jù)通過此接口查詢不到,請參考云片后臺消費(fèi)明細(xì)
請求參數(shù)
參數(shù)名 | 類型 | 是否必須 | 描述 | 示例 |
apikey | string | 是 | 用戶唯一標(biāo)識,在"賬號設(shè)置"-"子帳號管理"中查看 | 9b11127a9701975c734b8aee81ee3526 |
date | string | 是 | 日期,格式 yyyy-MM-dd | 2017-03-30 |
響應(yīng)
名稱 | 類型 | 描述 |
totalCount | integer | 總計(jì)短信條數(shù) |
totalFee | string | 花費(fèi)費(fèi)用 |
totalSuccessCount | integer | 成功短信條數(shù) |
totalFailedCount | integer | 失敗短信條數(shù) |
totalUnknownCount | integer | 未知短信條數(shù) |
Json 響應(yīng)示例:
{ "totalCount": 62, "totalFee": "3.100", "totalSuccessCount": 53, "totalFailedCount": 1, "totalUnknownCount": 8 }