public class WxMaLiveServiceImpl extends Object implements WxMaLiveService
Created by yjwang on 2020/4/5.
ADD_ASSISTANT, ADD_GOODS, CREATE_ROOM, DELETE_ROOM, EDIT_ROOM, GET_ASSISTANT_LIST, GET_LIVE_INFO, GET_PUSH_URL, GET_SHARED_CODE, MODIFY_ASSISTANT, REMOVE_ASSISTANT| 构造器和说明 |
|---|
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?
|
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 |
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 |
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?
|
String |
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?
|
boolean |
modifyAssistant(Integer roomId,
String username,
String nickname)
修改直播间小助手昵称
调用接口修改直播间小助手昵称
调用频率
调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/modifyassistant?
|
boolean |
removeAssistant(Integer roomId,
String username)
删除直播间小助手
删除直播间小助手
调用频率
调用额度:10000次/一天
http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/room/removeassistant?
|
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 String 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 - .Copyright © 2020. All rights reserved.