public class WxMaLiveMemberServiceImpl extends Object implements WxMaLiveMemberService
构造器和说明 |
---|
WxMaLiveMemberServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
addRole(String username,
int role)
1.设置成员角色
调用此接口设置小程序直播成员的管理员、运营者和主播角色
调用额度:10000次/一天
请求URL : https://api.weixin.qq.com/wxaapi/broadcast/role/addrole?
|
String |
deleteRole(String username,
int role)
2.解除成员角色
调用此接口移除小程序直播成员的管理员、运营者和主播角色
调用额度:10000次/一天
请求URL:https://api.weixin.qq.com/wxaapi/broadcast/role/deleterole?
|
com.google.gson.JsonArray |
listByRole(Integer role,
Integer offset,
Integer limit,
String keyword)
3.查询成员列表
调用此接口查询小程序直播成员列表
调用额度:10000次/一天
请求URL:https://api.weixin.qq.com/wxaapi/broadcast/role/getrolelist?
|
public String addRole(String username, int role) throws WxErrorException
WxMaLiveMemberService
addRole
在接口中 WxMaLiveMemberService
username
- 用户的微信号role
- 设置用户的角色,取值[1-管理员,2-主播,3-运营者],设置超级管理员将无效WxErrorException
- the wx error exceptionpublic String deleteRole(String username, int role) throws WxErrorException
WxMaLiveMemberService
deleteRole
在接口中 WxMaLiveMemberService
username
- 用户的微信号role
- 设置用户的角色,取值[1-管理员,2-主播,3-运营者],设置超级管理员将无效WxErrorException
- the wx error exceptionpublic com.google.gson.JsonArray listByRole(Integer role, Integer offset, Integer limit, String keyword) throws WxErrorException
WxMaLiveMemberService
listByRole
在接口中 WxMaLiveMemberService
role
- 查询的用户角色,取值 [-1-所有成员, 0-超级管理员,1-管理员,2-主播,3-运营者],默认-1offset
- 起始偏移量, 默认0limit
- 查询个数,最大30,默认10keyword
- 搜索的微信号或昵称,不传则返回全部WxErrorException
- the wx error exceptionCopyright © 2024. All rights reserved.