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.BaseApiweixinExecutor
 
- 
 - 
Constructor SummaryConstructors Constructor Description GroupApi(TokenManager tokenManager)Deprecated.
 - 
Method SummaryAll 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.MpApiweixinBundle
 - 
Methods inherited from class com.foxinmy.weixin4j.api.BaseApigetRequestUri
 
- 
 
- 
- 
- 
Constructor Detail- 
GroupApipublic GroupApi(TokenManager tokenManager) Deprecated.
 
- 
 - 
Method Detail- 
createGrouppublic Group createGroup(String name) throws WeixinException Deprecated.创建分组- Parameters:
- name- 组名称
- Returns:
- group对象
- Throws:
- WeixinException
- See Also:
- 创建分组, 
Group,Group.toCreateJson()
 
 - 
getGroupspublic List<Group> getGroups() throws WeixinException Deprecated.查询所有分组- Returns:
- 组集合
- Throws:
- WeixinException
- See Also:
- 查询所有分组, 
Group
 
 - 
getGroupByOpenIdpublic int getGroupByOpenId(String openId) throws WeixinException Deprecated.查询用户所在分组- Parameters:
- openId- 用户对应的ID
- Returns:
- 组ID
- Throws:
- WeixinException
- See Also:
- 查询用户所在分组, 
Group
 
 - 
modifyGrouppublic ApiResult modifyGroup(int groupId, String name) throws WeixinException Deprecated.修改分组名- Parameters:
- groupId- 组ID
- name- 组名称
- Throws:
- WeixinException
- See Also:
- 修改分组名, 
Group,Group.toModifyJson()
 
 - 
moveGrouppublic ApiResult moveGroup(int groupId, String openId) throws WeixinException Deprecated.移动用户到分组- Parameters:
- groupId- 组ID
- openId- 用户对应的ID
- Throws:
- WeixinException
- See Also:
- 移动分组, 
Group
 
 - 
moveGrouppublic ApiResult moveGroup(int groupId, String... openIds) throws WeixinException Deprecated.批量移动分组- Parameters:
- groupId- 组ID
- openIds- 用户ID列表(不能超过50个)
- Throws:
- WeixinException
- See Also:
- 批量移动分组, 
Group
 
 - 
deleteGrouppublic ApiResult deleteGroup(int groupId) throws WeixinException Deprecated.删除用户分组,所有该分组内的用户自动进入默认分组.- Parameters:
- groupId- 组ID
- Throws:
- WeixinException
- See Also:
- 删除用户分组, 
Group
 
 
- 
 
-