com.belerweb.social.weixin.api
Class Group

java.lang.Object
  extended by com.belerweb.social.API
      extended by com.belerweb.social.weixin.api.Group

public class Group
extends API

分组管理接口 文档地址:http://mp.weixin.qq.com/wiki/index.php?title=分组管理接口


Field Summary
 
Fields inherited from class com.belerweb.social.API
connect, t, weibo, weixin
 
Constructor Summary
protected Group(Weixin weixin)
           
 
Method Summary
 Result<Group> create(String name)
          创建分组
 Result<Group> create(String accessToken, String name)
          创建分组 一个公众账号,最多支持创建500个分组。
 Result<List<Group>> get()
          查询分组
 Result<List<Group>> get(String accessToken)
          查询分组
 Result<Error> move(String openId, String groupId)
          移动用户分组
 Result<Error> move(String accessToken, String openId, String groupId)
          移动用户分组
 Result<Error> update(String id, String name)
          修改分组名
 Result<Error> update(String accessToken, String id, String name)
          修改分组名
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

protected Group(Weixin weixin)
Method Detail

get

public Result<List<Group>> get()
查询分组


get

public Result<List<Group>> get(String accessToken)
查询分组

Parameters:
accessToken - 调用接口凭证

create

public Result<Group> create(String name)
创建分组

Parameters:
name - 分组名字(30个字符以内)

create

public Result<Group> create(String accessToken,
                            String name)
创建分组 一个公众账号,最多支持创建500个分组。

Parameters:
accessToken - 调用接口凭证
name - 分组名字(30个字符以内)

update

public Result<Error> update(String id,
                            String name)
修改分组名

Parameters:
id - 分组id,由微信分配
name - 分组名字(30个字符以内)

update

public Result<Error> update(String accessToken,
                            String id,
                            String name)
修改分组名

Parameters:
accessToken - 调用接口凭证
id - 分组id,由微信分配
name - 分组名字(30个字符以内)

move

public Result<Error> move(String openId,
                          String groupId)
移动用户分组

Parameters:
openId - 用户唯一标识符
groupId - 分组id

move

public Result<Error> move(String accessToken,
                          String openId,
                          String groupId)
移动用户分组

Parameters:
accessToken - 调用接口凭证
openId - 用户唯一标识符
groupId - 分组id


Copyright © 2014. All Rights Reserved.