Appearance
获取直播任务列表 2.0
| 拥有此API的权限集 |
|---|
| 直播管理-查询 |
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.alive.marketing.live_task_by_id/2.0.0 - 频率限制:
10秒50次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 专属token |
| alive_id | 是 | string | 直播 id |
请求示例
json
{
"access_token": "xxxx",
"alive_id": "l_xxxxxxxx1111"
}返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码:0-成功,其他为错误 |
| msg | string | 对返回码的文本描述内容 |
| data | object | 返回数据 |
| data.is_open_task | int | 是否开启任务,0-关闭,1-开启 |
| data.list | object | 任务列表 |
data 数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 任务id |
| app_id | string | 店铺ID |
| alive_id | string | 直播ID |
| task_type | int | 任务类型:1=观看任务,2=互动任务,3=消费任务,4=活跃任务 |
| task_condition | int | 任务条件:观看任务时填写具体分钟值,互动任务时:1-评论 2-分享(21分享拉人,22分享拉新) 3-点赞,消费任务时:4-下单笔数 5-消费金额,活跃任务时:6-打赏 7-投票 8-问卷 9-签到 10-答题 |
| task_state | int | 任务状态:0-已删除,1-正常,2-已停止 |
| reward_type | int | 奖励类型:1=积分,2=优惠券,3=红包,4=课程/商品,5=自定义奖品 |
| reward_value | string | 奖励值 |
| reward_frequency | string | 满足奖励所需频次,消费:满足多少笔、多少金额;答题:答对几道;分享:拉人/拉新人数; |
| is_order | int | 是否按顺序完成,0否,1是 |
| task_is_major | int | 是否主任务,0-是,1-否 |
| task_module | int | 任务模块 0-单项任务,1-组合任务 |
| task_title | string | 任务标题 |
| child_tasks | object | 子任务,如果是组合任务,还会返回该主任务包含的所有子任务。 |
| created_at | string | 创建时间 |
| start_at | string | 开始时间 |
| end_at | string | 结束时间 |
返回示例
{
"code": 0,
"msg": "ok",
"data": {
"is_open_task": 1,
"list": [
{
"id": 1393133,
"app_id": "appxxxxxxxx1111",
"alive_id": "l_xxxxxxxx1111",
"task_type": 0,
"task_condition": "",
"task_content": null,
"task_state": 1,
"reward_type": 1,
"is_show_answer": 0,
"answer_chance": 0,
"reward_value": "1",
"reward_frequency": "",
"start_at": "2026-03-11 00:06:00",
"end_at": "2026-03-21 00:00:00",
"reward_pay_type": 0,
"team_pay_config": "",
"task_module": 1,
"task_is_major": 0,
"task_title": "任务包",
"is_order": 0,
"child_tasks": "[{\"id\":1393134,\"app_id\":\"appxxxxxxxx1111\",\"alive_id\":\"l_xxxxxxxx1111\",\"task_type\":1,\"task_condition\":\"10\",\"task_content\":null,\"is_show_answer\":0,\"answer_chance\":0,\"state\":1,\"reward_type\":0,\"reward_value\":\"\",\"reward_frequency\":\"\",\"reward_pay_type\":0,\"start_at\":\"2026-03-11 00:06:00\",\"end_at\":\"2026-03-21 00:00:00\",\"team_pay_config\":\"\",\"task_module\":1,\"task_is_major\":1,\"task_title\":\"\",\"task_is_order\":0,\"child_tasks\":null,\"level_member_rank\":null,\"rule_type\":0},{\"id\":1393135,\"app_id\":\"appxxxxxxxx1111\",\"alive_id\":\"l_xxxxxxxx1111\",\"task_type\":4,\"task_condition\":\"9\",\"task_content\":null,\"is_show_answer\":0,\"answer_chance\":0,\"state\":1,\"reward_type\":0,\"reward_value\":\"\",\"reward_frequency\":\"1\",\"reward_pay_type\":0,\"start_at\":\"2026-03-11 00:06:00\",\"end_at\":\"2026-03-21 00:00:00\",\"team_pay_config\":\"\",\"task_module\":1,\"task_is_major\":1,\"task_title\":\"\",\"task_is_order\":0,\"child_tasks\":null,\"level_member_rank\":null,\"rule_type\":0}]",
"level_member_rank": null,
"rule_type": 0
},
{
"id": 1269568,
"app_id": "appxxxxxxxx1111",
"alive_id": "l_xxxxxxxx1111",
"task_type": 3,
"task_condition": "4",
"task_content": null,
"task_state": 3,
"reward_type": 1,
"is_show_answer": 0,
"answer_chance": 0,
"reward_value": "1",
"reward_frequency": "2",
"start_at": "2026-03-11 10:29:00",
"end_at": "2026-03-11 11:27:17",
"reward_pay_type": 0,
"team_pay_config": "",
"task_module": 0,
"task_is_major": 0,
"task_title": "",
"is_order": 0,
"child_tasks": "",
"level_member_rank": null,
"rule_type": 0
}
]
}
}