Пример #1
0
        public static GetUserGroupResult GetUserGroupByOpenId(string openId)
        {
            return AccessToken.ApiHandlerWapper.TryCommonApi<GetUserGroupResult>(accessToken =>
            {
                var data = new
                {
                    openid = openId
                };
                return CommonSend.Send<GetUserGroupResult>(accessToken, UserGroupApi.GetUserInGroup_Url, data);
            });

        }
Пример #2
0
 /// <summary>
 /// 讲某个用户移动到某个组
 /// </summary>
 /// <param name="openId">用户的openid</param>
 /// <param name="to_groupid">将要移动的组id</param>
 /// <returns></returns>
 public static RequestErrorResult MoveUserToAnogherGroup(string openId, int to_groupid)
 {
     return AccessToken.ApiHandlerWapper.TryCommonApi<RequestErrorResult>(accessToken =>
    {
        var data = new
        {
            openid = openId,
            to_groupid = to_groupid
        };
        return CommonSend.Send<RequestErrorResult>(accessToken, UserGroupApi.MoveUserToAnotherGroup_Url, data);
    });
 }