issue #1 添加分组管理接口-移动用户分组

This commit is contained in:
Daniel Qian
2014-08-25 20:06:49 +08:00
parent 521c72ca57
commit 5ea560f6b4
4 changed files with 35 additions and 9 deletions

View File

@@ -226,6 +226,11 @@ public class WxServiceImpl implements WxService {
execute(new SimplePostRequestExecutor(), url, group.toJson());
}
public void groupMoveUser(String openid, long to_groupid) throws WxErrorException {
String url = "https://api.weixin.qq.com/cgi-bin/groups/members/update";
execute(new SimplePostRequestExecutor(), url, MessageFormat.format("'{'\"openid\":\"{0}\", \"to_groupid\":{1,number,#}}", openid, to_groupid));
}
/**
* 向微信端发送请求在这里执行的策略是当发生access_token过期时才去刷新然后重新执行请求而不是全局定时请求
* @param executor