Skip to content

获取直播任务列表 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_tokenstring专属token
alive_idstring直播 id

请求示例

json
{
  "access_token": "xxxx",
  "alive_id": "l_xxxxxxxx1111"
}

返回参数

参数名类型说明
codeint状态码:0-成功,其他为错误
msgstring对返回码的文本描述内容
dataobject返回数据
data.is_open_taskint是否开启任务,0-关闭,1-开启
data.listobject任务列表

data 数据

参数名类型说明
idint任务id
app_idstring店铺ID
alive_idstring直播ID
task_typeint任务类型:1=观看任务,2=互动任务,3=消费任务,4=活跃任务
task_conditionint任务条件:观看任务时填写具体分钟值,互动任务时:1-评论 2-分享(21分享拉人,22分享拉新) 3-点赞,消费任务时:4-下单笔数 5-消费金额,活跃任务时:6-打赏 7-投票 8-问卷 9-签到 10-答题
task_stateint任务状态:0-已删除,1-正常,2-已停止
reward_typeint奖励类型:1=积分,2=优惠券,3=红包,4=课程/商品,5=自定义奖品
reward_valuestring奖励值
reward_frequencystring满足奖励所需频次,消费:满足多少笔、多少金额;答题:答对几道;分享:拉人/拉新人数;
is_orderint是否按顺序完成,0否,1是
task_is_majorint是否主任务,0-是,1-否
task_moduleint任务模块 0-单项任务,1-组合任务
task_titlestring任务标题
child_tasksobject子任务,如果是组合任务,还会返回该主任务包含的所有子任务。
created_atstring创建时间
start_atstring开始时间
end_atstring结束时间

返回示例

{
    "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
            }
        ]
    }
}