# 获取带货者的直播列表
接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南
接口英文名:getliverecordlist
可通过该接口,可获取带货者的直播列表
# 1. 调用方式
# HTTPS 调用
POST https://api.weixin.qq.com/channels/ec/promoter/get_live_record_list?access_token=ACCESS_TOKEN
# 云调用
- 本接口不支持云调用
# 第三方调用
- 本接口不支持第三方平台调用。
# 2. 请求参数
# 查询参数 Query String parameters
参数名 | 类型 | 必填 | 示例 | 说明 |
---|---|---|---|---|
access_token | string | 是 | ACCESS_TOKEN | 接口调用凭证,可使用 access_token |
# 请求体 Request Payload
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
talent_appid | string | 是 | 带货者的 appid |
mini_program_appid | string | 是 | 需要挂载的小程序appid【要和机构绑定】 |
sharer_appid | string | 否 | 推客appid【为了生成某个推客推广的 link】 |
# 3. 返回参数
# 返回体 Response Payload
参数名 | 类型 | 示例 | 说明 |
---|---|---|---|
errcode | number | 0 | 错误码 |
errmsg | string | ok | 错误信息 |
live_record_list | objarray | 当前直播的直播数据 |
# Res.live_record_list(Array) Object Payload
当前直播的直播数据
参数名 | 类型 | 说明 |
---|---|---|
export_id | string | 直播 id |
description | string | 直播描述 |
promoter_share_link | string | 内嵌直播卡片时需要的推广参数 |
# 4. 注意事项
本接口无特殊注意事项
# 5. 代码示例
请求示例
{
"talent_appid": "",
"mini_program_appid":""
}
返回示例
{
"errcode": "0",
"errmsg": "ok",
"live_record_list": [
{
"export_id": "export_id",
"description": "description",
"promoter_share_link":"trace_id"
}
]
}
# 6. 错误码
以下是本接口的错误码列表,其他错误码可参考 通用错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|
10024000 | 参数错误 |
# 7. 适用范围
本接口暂未明确可调用账号类型,或在业务中根据调用传参自行确定是否可调用,请已实际调用情况为准。
小程序开发调用说明
// 以内嵌直播组件方式调用
<channel-live feed-id="${export_id}" promoterShareLink="${promoter_share_link}" />
// 以jsapi跳转方式调用
wx.openChannelsLive({ "feedId": "${export_id}", "promoterShareLink": "${promoter_share_link}" })