Package com.foxinmy.weixin4j.mp.api
Class GroupApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.mp.api.MpApi
-
- com.foxinmy.weixin4j.mp.api.GroupApi
-
@Deprecated public class GroupApi extends MpApi
Deprecated.分组相关API- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
Group
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description GroupApi(TokenManager tokenManager)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GroupcreateGroup(String name)Deprecated.创建分组ApiResultdeleteGroup(int groupId)Deprecated.删除用户分组,所有该分组内的用户自动进入默认分组.intgetGroupByOpenId(String openId)Deprecated.查询用户所在分组List<Group>getGroups()Deprecated.查询所有分组ApiResultmodifyGroup(int groupId, String name)Deprecated.修改分组名ApiResultmoveGroup(int groupId, String openId)Deprecated.移动用户到分组ApiResultmoveGroup(int groupId, String... openIds)Deprecated.批量移动分组-
Methods inherited from class com.foxinmy.weixin4j.mp.api.MpApi
weixinBundle
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
Constructor Detail
-
GroupApi
public GroupApi(TokenManager tokenManager)
Deprecated.
-
-
Method Detail
-
createGroup
public Group createGroup(String name) throws WeixinException
Deprecated.创建分组- Parameters:
name- 组名称- Returns:
- group对象
- Throws:
WeixinException- See Also:
- 创建分组,
Group,Group.toCreateJson()
-
getGroups
public List<Group> getGroups() throws WeixinException
Deprecated.查询所有分组- Returns:
- 组集合
- Throws:
WeixinException- See Also:
- 查询所有分组,
Group
-
getGroupByOpenId
public int getGroupByOpenId(String openId) throws WeixinException
Deprecated.查询用户所在分组- Parameters:
openId- 用户对应的ID- Returns:
- 组ID
- Throws:
WeixinException- See Also:
- 查询用户所在分组,
Group
-
modifyGroup
public ApiResult modifyGroup(int groupId, String name) throws WeixinException
Deprecated.修改分组名- Parameters:
groupId- 组IDname- 组名称- Throws:
WeixinException- See Also:
- 修改分组名,
Group,Group.toModifyJson()
-
moveGroup
public ApiResult moveGroup(int groupId, String openId) throws WeixinException
Deprecated.移动用户到分组- Parameters:
groupId- 组IDopenId- 用户对应的ID- Throws:
WeixinException- See Also:
- 移动分组,
Group
-
moveGroup
public ApiResult moveGroup(int groupId, String... openIds) throws WeixinException
Deprecated.批量移动分组- Parameters:
groupId- 组IDopenIds- 用户ID列表(不能超过50个)- Throws:
WeixinException- See Also:
- 批量移动分组,
Group
-
deleteGroup
public ApiResult deleteGroup(int groupId) throws WeixinException
Deprecated.删除用户分组,所有该分组内的用户自动进入默认分组.- Parameters:
groupId- 组ID- Throws:
WeixinException- See Also:
- 删除用户分组,
Group
-
-