public class WxMaLiveServiceImpl extends Object implements WxMaLiveService
Created by yjwang on 2020/4/5.
| 构造器和说明 | 
|---|
WxMaLiveServiceImpl()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
boolean | 
addAssistant(Integer roomId,
            List<WxMaLiveAssistantInfo> users)
添加管理直播间小助手
 
 调用接口往指定直播间添加管理直播间小助手
 调用频率
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addassistant? 
 | 
boolean | 
addGoodsToRoom(Integer roomId,
              List<Integer> goodsIds)
直播间导入商品
 
 调用接口往指定直播间导入已入库的商品
 调用频率
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods? 
 | 
boolean | 
addSubanchor(Integer roomId,
            String username)
添加主播副号
 
 调用接口添加主播副号
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addsubanchor? 
 | 
WxMaCreateRoomResult | 
createRoom(WxMaLiveRoomInfo roomInfo)
创建直播间
 
 调用此接口创建直播间,创建成功后将在直播间列表展示,调用额度:10000次/一天
 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/create? 
 | 
boolean | 
deleteInRoom(Integer roomId,
            Integer goodsId)
删除直播间商品
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/deleteInRoom? 
 | 
boolean | 
deleteRoom(Integer roomId)
删除直播间
 
 调用额度:10000次/一天
 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#5
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/deleteroom? 
 | 
boolean | 
deleteSubanchor(Integer roomId)
删除主播副号
 
 调用频率: 10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/deletesubanchor? 
 | 
boolean | 
editRoom(WxMaLiveRoomInfo roomInfo)
编辑直播间
 
 调用此接口编辑直播间,调用额度:10000次/一天
 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#6
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/editroom? 
 | 
List<WxMaAssistantResult.Assistant> | 
getAssistantList(Integer roomId)
查询直播间小助手
 
 查询直播间小助手
 调用频率
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/getassistantlist? 
 | 
WxMaLiveResult | 
getLiveInfo(Integer start,
           Integer limit)
获取直播房间列表. 
 | 
List<WxMaLiveResult.RoomInfo> | 
getLiveInfos()
获取所有直播间信息(没有分页直接获取全部) 
 | 
WxMaLiveResult | 
getLiveReplay(Integer roomId,
             Integer start,
             Integer limit)
获取直播房间回放数据信息. 
 | 
WxMaLiveResult | 
getLiveReplay(String action,
             Integer roomId,
             Integer start,
             Integer limit)
获取直播房间回放数据信息. 
 | 
String | 
getPushUrl(Integer roomId)
获取直播间推流地址
 
 调用额度:10000次/一天
 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#7
 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getpushurl? 
 | 
WxMaLiveSharedCode | 
getSharedCode(Integer roomId,
             String params)
获取直播间分享二维码
 
 调用额度:10000次/一天
 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#8
 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getsharedcode? 
 | 
String | 
getSubanchor(Integer roomId)
获取主播副号
 
 调用额度:10000次/一天
 
 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getsubanchor? 
 | 
String | 
getVideo(Integer roomId,
        Integer goodsId)
下载商品讲解视频
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo? 
 | 
boolean | 
modifyAssistant(Integer roomId,
               String username,
               String nickname)
修改直播间小助手昵称
 
 调用接口修改直播间小助手昵称
 调用频率
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant? 
 | 
boolean | 
modifySubanchor(Integer roomId,
               String username)
修改主播副号
 
 调用接口修改主播副号
 
 调用频率: 10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant? 
 | 
boolean | 
onsale(Integer roomId,
      Integer goodsId,
      Integer onSale)
上下架商品
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/onsale? 
 | 
boolean | 
push(Integer roomId,
    Integer goodsId)
推送商品
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/push? 
 | 
boolean | 
removeAssistant(Integer roomId,
               String username)
删除直播间小助手
 
 删除直播间小助手
 调用频率
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/removeassistant? 
 | 
boolean | 
sort(Integer roomId,
    List<Map<String,String>> goods)
直播间商品排序
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/sort? 
 | 
boolean | 
updatecomment(Integer roomId,
             Integer banComment)
开启/关闭直播间全局禁言
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatecomment? 
 | 
boolean | 
updatefeedpublic(Integer roomId,
                Integer isFeedsPublic)
开启/关闭直播间官方收录
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatefeedpublic? 
 | 
boolean | 
updatekf(Integer roomId,
        Integer closeKf)
开启/关闭客服功能
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatekf? 
 | 
boolean | 
updatereplay(Integer roomId,
            Integer closeReplay)
开启/关闭回放功能
 
 调用额度:10000次/一天
 
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatereplay? 
 | 
public WxMaCreateRoomResult createRoom(WxMaLiveRoomInfo roomInfo) throws WxErrorException
WxMaLiveService调用此接口创建直播间,创建成功后将在直播间列表展示,调用额度:10000次/一天 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token=ACCESS_TOKEN
createRoom 在接口中 WxMaLiveServiceroomInfo - 直播间信息WxErrorException - .public boolean deleteRoom(Integer roomId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#5 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/deleteroom?access_token=ACCESS_TOKEN
deleteRoom 在接口中 WxMaLiveServiceroomId - 直播间idWxErrorException - .public boolean editRoom(WxMaLiveRoomInfo roomInfo) throws WxErrorException
WxMaLiveService调用此接口编辑直播间,调用额度:10000次/一天 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#6 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/editroom?access_token=ACCESS_TOKEN
editRoom 在接口中 WxMaLiveServiceroomInfo - 直播间信息WxErrorException - .public String getPushUrl(Integer roomId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#7 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getpushurl?access_token=ACCESS_TOKEN
getPushUrl 在接口中 WxMaLiveServiceroomId - 直播间idWxErrorException - .public WxMaLiveSharedCode getSharedCode(Integer roomId, String params) throws WxErrorException
WxMaLiveService调用额度:10000次/一天 文档地址:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#8 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getsharedcode?access_token=ACCESS_TOKEN
getSharedCode 在接口中 WxMaLiveServiceroomId - 直播间idWxErrorException - .public List<WxMaLiveResult.RoomInfo> getLiveInfos() throws WxErrorException
WxMaLiveServicegetLiveInfos 在接口中 WxMaLiveServiceWxErrorException - .public WxMaLiveResult getLiveInfo(Integer start, Integer limit) throws WxErrorException
WxMaLiveServicegetLiveInfo 在接口中 WxMaLiveServicestart - 起始拉取房间,start = 0 表示从第 1 个房间开始拉取limit - 每次拉取的个数上限,不要设置过大,建议 100 以内WxErrorException - .public WxMaLiveResult getLiveReplay(String action, Integer roomId, Integer start, Integer limit) throws WxErrorException
WxMaLiveServicegetLiveReplay 在接口中 WxMaLiveServiceaction - 获取回放roomId - 直播间   idstart - 起始拉取视频,start =   0   表示从第    1   个视频片段开始拉取limit - 每次拉取的个数上限,不要设置过大,建议  100 以内WxErrorException - .public WxMaLiveResult getLiveReplay(Integer roomId, Integer start, Integer limit) throws WxErrorException
WxMaLiveService获取回放 (默认:get_replay)
getLiveReplay 在接口中 WxMaLiveServiceroomId - 直播间   idstart - 起始拉取视频,start =   0   表示从第    1   个视频片段开始拉取limit - 每次拉取的个数上限,不要设置过大,建议  100 以内WxErrorException - .public boolean addGoodsToRoom(Integer roomId, List<Integer> goodsIds) throws WxErrorException
WxMaLiveService调用接口往指定直播间导入已入库的商品 调用频率 调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token=ACCESS_TOKEN
addGoodsToRoom 在接口中 WxMaLiveServiceroomId - 房间IDgoodsIds - 数组列表,可传入多个,里面填写 商品 IDWxErrorException - .public boolean addAssistant(Integer roomId, List<WxMaLiveAssistantInfo> users) throws WxErrorException
WxMaLiveService调用接口往指定直播间添加管理直播间小助手 调用频率 调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addassistant?access_token=ACCESS_TOKEN
addAssistant 在接口中 WxMaLiveServiceroomId - 房间IDusers - 数组列表,可传入多个,"users": [{"username":"testwechat","nickname":"testnick"}]WxErrorException - .public boolean modifyAssistant(Integer roomId, String username, String nickname) throws WxErrorException
WxMaLiveService调用接口修改直播间小助手昵称 调用频率 调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant?access_token=ACCESS_TOKEN
modifyAssistant 在接口中 WxMaLiveServiceroomId - 房间IDusername - 小助手微信号nickname - 小助手直播间昵称WxErrorException - .public boolean removeAssistant(Integer roomId, String username) throws WxErrorException
WxMaLiveService删除直播间小助手 调用频率 调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/removeassistant?access_token=ACCESS_TOKEN
removeAssistant 在接口中 WxMaLiveServiceroomId - 房间IDusername - 小助手微信号WxErrorException - .public List<WxMaAssistantResult.Assistant> getAssistantList(Integer roomId) throws WxErrorException
WxMaLiveService查询直播间小助手 调用频率 调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/getassistantlist?access_token=ACCESS_TOKEN
getAssistantList 在接口中 WxMaLiveServiceroomId - 房间IDWxErrorException - .public boolean addSubanchor(Integer roomId, String username) throws WxErrorException
WxMaLiveService调用接口添加主播副号
调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/addsubanchor?access_token=ACCESS_TOKEN
addSubanchor 在接口中 WxMaLiveServiceroomId - 房间IDusername - 用户微信号WxErrorException - .public boolean modifySubanchor(Integer roomId, String username) throws WxErrorException
WxMaLiveService调用接口修改主播副号
调用频率: 10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant?access_token=ACCESS_TOKEN
modifySubanchor 在接口中 WxMaLiveServiceroomId - 房间IDusername - 小助手微信号WxErrorException - .public boolean deleteSubanchor(Integer roomId) throws WxErrorException
WxMaLiveService调用频率: 10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/deletesubanchor?access_token=ACCESS_TOKEN
deleteSubanchor 在接口中 WxMaLiveServiceroomId - 房间IDWxErrorException - .public String getSubanchor(Integer roomId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/room/getsubanchor?access_token=ACCESS_TOKEN
getSubanchor 在接口中 WxMaLiveServiceroomId - 直播间idWxErrorException - .public boolean updatefeedpublic(Integer roomId, Integer isFeedsPublic) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatefeedpublic?access_token=ACCESS_TOKEN
updatefeedpublic 在接口中 WxMaLiveServiceroomId - 房间IDisFeedsPublic - 是否开启官方收录 【1: 开启,0:关闭】WxErrorException - .public boolean updatereplay(Integer roomId, Integer closeReplay) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatereplay?access_token=ACCESS_TOKEN
updatereplay 在接口中 WxMaLiveServiceroomId - 房间IDcloseReplay - 是否关闭回放 【0:开启,1:关闭】WxErrorException - .public boolean updatekf(Integer roomId, Integer closeKf) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatekf?access_token=ACCESS_TOKEN
updatekf 在接口中 WxMaLiveServiceroomId - 房间IDcloseKf - 是否关闭客服 【0:开启,1:关闭】WxErrorException - .public boolean updatecomment(Integer roomId, Integer banComment) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/updatecomment?access_token=ACCESS_TOKEN
updatecomment 在接口中 WxMaLiveServiceroomId - 房间IDbanComment - 1-禁言,0-取消禁言WxErrorException - .public boolean onsale(Integer roomId, Integer goodsId, Integer onSale) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/onsale?access_token=ACCESS_TOKEN
onsale 在接口中 WxMaLiveServiceroomId - 房间IDgoodsId - 商品IDonSale - 上下架 【0:下架,1:上架】WxErrorException - .public boolean deleteInRoom(Integer roomId, Integer goodsId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/deleteInRoom?access_token=ACCESS_TOKEN
deleteInRoom 在接口中 WxMaLiveServiceroomId - 房间IDgoodsId - 商品IDWxErrorException - .public boolean push(Integer roomId, Integer goodsId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/push?access_token=ACCESS_TOKEN
push 在接口中 WxMaLiveServiceroomId - 房间IDgoodsId - 商品IDWxErrorException - .public boolean sort(Integer roomId, List<Map<String,String>> goods) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/sort?access_token=ACCESS_TOKEN
sort 在接口中 WxMaLiveServiceroomId - 房间IDgoods - 商品ID列表, 例如: [{"goodsId":"123"}, {"goodsId":"234"}]WxErrorException - .public String getVideo(Integer roomId, Integer goodsId) throws WxErrorException
WxMaLiveService调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/getVideo?access_token=ACCESS_TOKEN
getVideo 在接口中 WxMaLiveServiceroomId - 直播间idgoodsId - 商品IDWxErrorException - .Copyright © 2025. All rights reserved.