示例#1
0
        public static bool BatchDeleteMember(string[] userIds, ref string erromsg)
        {
            try
            {
                var result = MailListApi.BatchDeleteMember(GetToken(), userIds);
            }
            catch (ErrorJsonResultException ex)
            {
                erromsg = WxReturnCodeMessage.GetReturnMessage((int)ex.JsonResult.errcode);
                return(false);
            }

            return(true);
        }
示例#2
0
        public static GetMemberResult GetMember(string userId, ref string erromsg)
        {
            GetMemberResult result = new GetMemberResult();

            try
            {
                result = MailListApi.GetMember(GetToken(), userId);
            }
            catch (ErrorJsonResultException ex)
            {
                erromsg = WxReturnCodeMessage.GetReturnMessage((int)ex.JsonResult.errcode);
            }
            return(result);
        }
示例#3
0
        public static bool UpdateWxUser(ref string erromsg, string userId, string name, int[] department = null, string position = null, string mobile = null, string email = null, string weixinId = null)
        {
            try
            {
                var result = MailListApi.UpdateMember(GetToken(), userId, name, department, position, mobile, email, weixinId);
                erromsg = result.errmsg;
            }
            catch (ErrorJsonResultException ex)
            {
                erromsg = WxReturnCodeMessage.GetReturnMessage((int)ex.JsonResult.errcode);
                return(false);
            }

            return(true);
        }