protected void btnGroup_Click(object sender, EventArgs e) { //创建分组 var ginfo = WeiXin.CreateGroup("groupName", access_token); //ginfo.error 一如既往的判断error //修改分组 var retcode = WeiXin.UpdateGroup(23, "newGroupName", access_token); //移动分组 int newGroupid = 1; retcode = WeiXin.MoveGroup("openid", newGroupid, access_token); //得到所有分组 var groups = WeiXin.GetGroups(access_token); //循环分组 foreach (var g in groups) { //g.name } //得到openid的分组 var gid = WeiXin.GetUserGroup("openid", access_token); //gid.error 一如既往的判断error }