com.foxinmy.weixin4j.mp.api
Class GroupApi

java.lang.Object
  extended by com.foxinmy.weixin4j.api.BaseApi
      extended by com.foxinmy.weixin4j.mp.api.MpApi
          extended by com.foxinmy.weixin4j.mp.api.GroupApi

Deprecated.

@Deprecated
public class GroupApi
extends MpApi

分组相关API

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
Group

Constructor Summary
GroupApi(TokenManager tokenManager)
          Deprecated.  
 
Method Summary
 Group createGroup(String name)
          Deprecated. 创建分组
 ApiResult deleteGroup(int groupId)
          Deprecated. 删除用户分组,所有该分组内的用户自动进入默认分组.
 int getGroupByOpenId(String openId)
          Deprecated. 查询用户所在分组
 List<Group> getGroups()
          Deprecated. 查询所有分组
 ApiResult modifyGroup(int groupId, String name)
          Deprecated. 修改分组名
 ApiResult moveGroup(int groupId, String... openIds)
          Deprecated. 批量移动分组
 ApiResult moveGroup(int groupId, String openId)
          Deprecated. 移动用户到分组
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - 组ID
name - 组名称
Throws:
WeixinException
See Also:
修改分组名, Group, Group.toModifyJson()

moveGroup

public ApiResult moveGroup(int groupId,
                           String openId)
                    throws WeixinException
Deprecated. 
移动用户到分组

Parameters:
groupId - 组ID
openId - 用户对应的ID
Throws:
WeixinException
See Also:
移动分组, Group

moveGroup

public ApiResult moveGroup(int groupId,
                           String... openIds)
                    throws WeixinException
Deprecated. 
批量移动分组

Parameters:
groupId - 组ID
openIds - 用户ID列表(不能超过50个)
Throws:
WeixinException
See Also:
批量移动分组, Group

deleteGroup

public ApiResult deleteGroup(int groupId)
                      throws WeixinException
Deprecated. 
删除用户分组,所有该分组内的用户自动进入默认分组.

Parameters:
groupId - 组ID
Throws:
WeixinException
See Also:
删除用户分组, Group


Copyright © 2014–2017. All rights reserved.