Appearance
获取直播抽奖详情
| 拥有此API的权限集 |
|---|
| 直播管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.alive.marketing.prize.get/1.0.0 - 频率限制:
10秒50次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| alive_id | 是 | string | 直播ID |
| prize_id | 是 | string | 抽奖ID |
请求示例
json
{
"access_token": "xe_xxxxx",
"alive_id": "l_xxxxx",
"prize_id": "prize_xxxxx"
}返回参数
| 参数名 | 必选 | 类型 | 说明 | 备注 |
|---|---|---|---|---|
| code | 是 | int | 返回码 | 0-成功,其他失败 |
| msg | 是 | string | 返回信息 | ... |
| data | 是 | json对象 | 返回值 | ... |
data 对象
| 参数名 | 类型 | 说明 |
|---|---|---|
| app_id | string | 店铺ID |
| prize_id | string | 抽奖ID |
| prize_name | string | 抽奖名称 |
| start_at | string | 开始时间 |
| end_at | string | 结束时间 |
| prize_patten | int | 抽奖模式 |
| prize_status | int | 抽奖状态 |
| prize_param | string | 抽奖参数JSON字符串 |
| exclude_winners | int | 是否可重复中奖:0-可重复中奖 1-不可重复中奖 |
| is_deleted | int | 是否删除:0-否 1-是 |
| set_user_id | string | 设置用户ID |
| draw_user_id | string | 开奖用户ID |
| participate_type | int | 参与类型 |
| particant_condition | object | 参与条件 |
| bind_customs | array | 自定义奖品列表 |
| bind_points | array | 积分奖品列表 |
| set_nickname | string | 设置者昵称 |
| draw_nickname | string | 开奖者昵称 |
particant_condition 对象
| 参数名 | 类型 | 说明 |
|---|---|---|
| alive_id | string | 直播ID |
| type | int | 参与条件类型:2-在线,3-任意评论,4-指定评论,5-分享直播间,6-使用积分,7-下单任意金额,8-下单指定商品,9-指定等级会员 |
| range_type | int | 范围类型 |
| ext | object | 扩展信息 |
| is_show_participant | string | 是否展示参与任务:0-不展示 1-展示 |
ext 对象
| 参数名 | 类型 | 说明 |
|---|---|---|
| integral | string | 积分数量 |
| content | string | 补充条件内容 |
bind_customs 数组元素
| 参数名 | 类型 | 说明 |
|---|---|---|
| prize_id | string | 抽奖ID |
| prize_custom_title | string | 奖项名称 |
| prize_type | int | 奖品类型:1-自定义奖品 |
| prize_product_id | string | 产品ID |
| prize_num | int | 奖品数量 |
| prize_value | object | 奖品值配置 |
| sort | int | 序号 |
| expire_days | int | 过期天数 |
| prize_title | string | 奖品标题 |
prize_value 对象(自定义奖品配置)
| 参数名 | 类型 | 说明 |
|---|---|---|
| prize_title | string | 奖品标题 |
| prize_image | object | 奖品图片配置 |
| contact_information | object | 联系方式配置 |
prize_image 对象
| 参数名 | 类型 | 说明 |
|---|---|---|
| is_default | string | 是否使用默认图片:0-否 1-是 |
| image | string | 奖品图片URL |
contact_information 对象
| 参数名 | 类型 | 说明 |
|---|---|---|
| is_wx_number | string | 是否显示微信号:0-否 1-是 |
| wx_number | string | 微信号 |
| is_qrcode | string | 是否显示二维码:0-否 1-是 |
| qrcode | string | 二维码图片URL |
bind_points 数组元素
| 参数名 | 类型 | 说明 |
|---|---|---|
| prize_id | string | 抽奖ID |
| prize_custom_title | string | 奖项名称 |
| prize_type | int | 奖品类型:5-积分 |
| prize_product_id | string | 产品ID |
| prize_num | int | 奖品数量 |
| sort | int | 序号 |
| expire_days | int | 过期天数 |
| points | string | 积分数值 |
返回示例
json
{
"code": 0,
"msg": "success",
"data": {
"app_id": "app_xxxxxx",
"prize_id": "prize_xxxxx",
"prize_name": "1",
"start_at": null,
"end_at": null,
"prize_patten": 2,
"prize_status": 0,
"prize_param": "{\"alive_id\":\"l_xxxxx\",\"type\":2,\"range_type\":0,\"ext\":{\"integral\":\"1\",\"content\":\"\"},\"is_show_participant\":\"0\"}",
"exclude_winners": 0,
"is_deleted": 0,
"set_user_id": null,
"draw_user_id": null,
"participate_type": 2,
"particant_condition": {
"alive_id": "l_xxxxx",
"type": 2,
"range_type": 0,
"ext": {
"integral": "1",
"content": ""
},
"is_show_participant": "0"
},
"bind_customs": [
{
"prize_id": "prize_xxxxx",
"prize_custom_title": "名称",
"prize_type": 1,
"prize_product_id": "prize_prd_xxxxx",
"prize_num": 1,
"prize_value": {
"prize_title": "1",
"prize_image": {
"is_default": "1",
"image": "https://example.com/image/prize.png"
},
"contact_information": {
"is_wx_number": "0",
"wx_number": "",
"is_qrcode": "1",
"qrcode": "https://example.com/image/qrcode.png"
}
},
"sort": 1,
"expire_days": 15,
"prize_title": "1"
},
{
"prize_id": "prize_xxxxx",
"prize_custom_title": "名称",
"prize_type": 1,
"prize_product_id": "prize_prd_xxxxx",
"prize_num": 1,
"prize_value": {
"prize_title": "自定义商品2",
"prize_image": {
"is_default": "1",
"image": "https://example.com/image/prize.png"
},
"contact_information": {
"is_wx_number": "0",
"wx_number": "",
"is_qrcode": "1",
"qrcode": "https://example.com/image/qrcode.png"
}
},
"sort": 3,
"expire_days": 15,
"prize_title": "自定义商品2"
}
],
"bind_points": [
{
"prize_id": "prize_xxxxx",
"prize_custom_title": "名称",
"prize_type": 5,
"prize_product_id": "prize_prd_xxxxx",
"prize_num": 1,
"sort": 2,
"expire_days": 15,
"points": "1"
}
],
"set_nickname": "-",
"draw_nickname": ""
},
"forward_url": "",
"bizCode": 0,
"requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}