获取对应时间段的短信使用量
开发中
POST
https://saas-open.vhall.com/v3/data-center/user/user-sms
V3
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
user_id | int | 是 | 用户id |
time_span | int | 是 | 时间跨度 1=> 7天,2 => 30天,3 => 90天,4 => 180天,5 => 360天 |
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
remain_sms | string | 是 | 剩余短信条数 |
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
time | string | 是 | 时间 |
value | string | 是 | 消耗短信 |
{
"msg": "操作成功!",
"code": 200,
"data": {
"remain_sms": 106,
"list": [
{
"time": "2023-03-30",
"value": 0
},
{
"time": "2023-03-31",
"value": 0
},
{
"time": "2023-04-01",
"value": 0
}
]
},
"request_id": "4e03c628-9a0a-4963-afc5-ad6207f6630a"
}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/data-center/user/user-sms' \
--header 'platform: 15' \
--form 'time_span=""' \
--form 'app_key=""' \
--form 'sign_type=""' \
--form 'signed_at=""' \
--form 'sign=""'
响应示例响应示例
{
"msg": "string",
"code": 0,
"data": {
"remain_sms": 0,
"list": [
{
"time": "string",
"value": 0
}
]
},
"request_id": "string"
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
platform
integer
可选
默认值:
15
Body 参数multipart/form-data
time_span
string
必需
app_key
string
必需
默认值:
{{app_key}}
sign_type
integer
必需
默认值:
{{sign_type}}
signed_at
integer
必需
默认值:
{{signed_at}}
sign
string
计算生成的签名值
默认值:
{{sign}}
返回响应
修改于 2025-06-16 07:11:09