View Source WeChat.MiniProgram.Live.Room (wechat v0.18.0)

小程序 - 直播间管理

Summary

Types

是否开启禁言 【0:开启,1:关闭】

是否关闭客服 【0:开启,1:关闭】

是否关闭回放 【0:开启,1:关闭】

是否开启官方收录 【1: 开启,0:关闭】

上下架 【0:下架,1:上架】

Functions

添加管理直播间小助手 - 官方文档

查询管理直播间小助手 - 官方文档

获取直播间推流地址 - 官方文档

开启/关闭直播间全局禁言 - 官方文档

Types

is_ban_comment()

@type is_ban_comment() :: boolean() | 0 | 1

是否开启禁言 【0:开启,1:关闭】

is_close_kf()

@type is_close_kf() :: boolean() | 0 | 1

是否关闭客服 【0:开启,1:关闭】

is_close_replay()

@type is_close_replay() :: boolean() | 0 | 1

是否关闭回放 【0:开启,1:关闭】

is_feeds_public()

@type is_feeds_public() :: boolean() | 0 | 1

是否开启官方收录 【1: 开启,0:关闭】

is_on_sale()

@type is_on_sale() :: boolean() | 0 | 1

上下架 【0:下架,1:上架】

limit()

@type limit() :: 1..100

room_id()

@type room_id() :: integer()

start()

@type start() :: integer()

user()

@type user() :: %{username: WeChat.User.username(), nickname: WeChat.User.nickname()}

users()

@type users() :: [user()]

Functions

add_assistant(client, room_id, users)

@spec add_assistant(WeChat.client(), room_id(), users()) :: WeChat.response()

添加管理直播间小助手 - 官方文档

add_goods(client, room_id, goods_ids)

直播间导入商品 - 官方文档

调用此接口往指定直播间导入已入库的商品

add_subanchor(client, room_id, username)

@spec add_subanchor(WeChat.client(), room_id(), WeChat.User.username()) ::
  WeChat.response()

添加主播副号 - 官方文档

create_room(client, data)

@spec create_room(WeChat.client(), data :: map()) :: WeChat.response()

创建直播间 - 官方文档

该接口可直接创建直播间,创建成功后直播间将在直播间列表展示

delete_room(client, room_id)

@spec delete_room(WeChat.client(), room_id()) :: WeChat.response()

删除直播间 - 官方文档

delete_subanchor(client, room_id)

@spec delete_subanchor(WeChat.client(), room_id()) :: WeChat.response()

删除主播副号 - 官方文档

edit_room(client, data)

@spec edit_room(WeChat.client(), data :: map()) :: WeChat.response()

编辑直播间 - 官方文档

get_assistant_list(client, room_id)

@spec get_assistant_list(WeChat.client(), room_id()) :: WeChat.response()

查询管理直播间小助手 - 官方文档

get_live_info(client, start \\ 0, limit \\ 10)

@spec get_live_info(WeChat.client(), start(), limit()) :: WeChat.response()

获取直播房间列表 - 官方文档

该接口可获取直播房间列表

get_push_url(client, room_id)

@spec get_push_url(WeChat.client(), room_id()) :: WeChat.response()

获取直播间推流地址 - 官方文档

get_replay(client, room_id, start \\ 0, limit \\ 10)

@spec get_replay(WeChat.client(), room_id(), start(), limit()) :: WeChat.response()

获取直播间回放 - 官方文档

该接口可在直播结束后拿到回放源视频

get_shared_code(client, room_id, params \\ %{})

@spec get_shared_code(WeChat.client(), room_id(), params :: map()) ::
  WeChat.response()

获取直播间分享二维码 - 官方文档

get_subanchor(client, room_id)

@spec get_subanchor(WeChat.client(), room_id()) :: WeChat.response()

获取主播副号 - 官方文档

goods_delete(client, room_id, goods_id)

删除直播间商品 - 官方文档

goods_get_video(client, room_id, goods_id)

下载商品讲解视频 - 官方文档

goods_onsale(client, room_id, goods_id, is_on_sale)

上下架直播间商品 - 官方文档

goods_push(client, room_id, goods_id)

推送商品 - 官方文档

goods_sort(client, room_id, goods_ids)

直播间商品排序 - 官方文档

modify_assistant(client, room_id, username, nickname)

修改管理直播间小助手 - 官方文档

modify_subanchor(client, room_id, username)

@spec modify_subanchor(WeChat.client(), room_id(), WeChat.User.username()) ::
  WeChat.response()

修改主播副号 - 官方文档

remove_assistant(client, room_id, username)

@spec remove_assistant(WeChat.client(), room_id(), WeChat.User.username()) ::
  WeChat.response()

删除管理直播间小助手 - 官方文档

update_comment(client, room_id, is_ban_comment)

@spec update_comment(WeChat.client(), room_id(), is_ban_comment()) ::
  WeChat.response()

开启/关闭直播间全局禁言 - 官方文档

update_feed_public(client, room_id, is_feeds_public)

@spec update_feed_public(WeChat.client(), room_id(), is_feeds_public()) ::
  WeChat.response()

开启/关闭直播间官方收录 - 官方文档

update_kf(client, room_id, is_close_kf)

@spec update_kf(WeChat.client(), room_id(), is_close_kf()) :: WeChat.response()

开启/关闭客服功能 - 官方文档

update_replay(client, room_id, is_close_replay)

@spec update_replay(WeChat.client(), room_id(), is_close_replay()) ::
  WeChat.response()

开启/关闭回放功能 - 官方文档