获取直播红包列表
| 拥有此API的权限集 |
|---|
| 直播管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.live.redpacket.list/1.0.0 - 频率限制:
10秒3000次
在线调试工具
请求
响应
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| resource_id | 是 | string | 资源id |
| resource_type | 是 | int | 资源类型 |
| current_user_id | 否 | string | 当前用户 |
| page | 否 | int | 页码 |
| limit | 否 | int | 条数 |
请求示例
{
"access_token": "xxx",
"resource_id": "l_61a59bd0e4b03f3fb99d7575",
"resource_type": 4
}
返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 返回码 |
| msg | string | 返回信息 |
| data | array | 返回值 |
data返回值
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | string | 红包id |
| app_id | string | 店铺id |
| resource_id | string | 资源id |
| resource_type | int | 资源类型 |
| order_id | string | 关联订单Id |
| r_type | int | 红包类型 |
| state | int | 红包状态;1-进行中,2-已结束,3-已过期 |
| receive_type | int | 领取类型;1-拼手气红包,2-等额红包 |
| receive_number | int | 领取数量 |
| money | string | 红包原金额(分) |
| average_price | int | receive_type=2时 记录单个金额 |
| after_deduction_money | int | 红包扣除手续费后金额(分) |
| num | int | 红包数量 |
| describe_msg | string | 红包描述 |
| created_at | string | 创建时间 |
| user_id | string | 红包发起人id |
| wx_nickname | string | 微信昵称 |
| wx_avatar | string | 微信头像 |
返回示例
{
"code": 0,
"msg": "success",
"data": [
{
"id": "Bvab2ejoRg1L",
"app_id": "appxxx",
"order_id": "o_1611320948_600ace7494c05_90966404",
"user_id": "u_5ed5f356cb844_JG2OgJ8TAa",
"resource_id": "i_60583e4160b292c8e76e89c8",
"resource_type": 1,
"r_type": 1,
"state": 1,
"receive_type": 1,
"money": 100,
"after_deduction_money": 100,
"num": 5,
"describe_msg": null,
"created_at": "2021-04-21 14:47:13",
"wx_nickname": "枯木逢春夏秋冬",
"wx_avatar": "http://wechatavator-1252524126.file.myqcloud.com/appDyeLbE8r3199/image/compress/u_5ed5f356cb844_JG2OgJ8TAa.png"
}
]
}