Пример #1
0
        /// <summary>
        /// 创建成员
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="name"></param>
        /// <param name="department"></param>
        /// <param name="position"></param>
        /// <param name="mobile"></param>
        /// <param name="gender"></param>
        /// <param name="email"></param>
        /// <param name="weixinid"></param>
        /// <returns></returns>
        public BaseRes User_Create(string userid, string name, int[] department, string position,
                                   string mobile, int gender, string email, string weixinid)
        {
            var rel = QyAPI.User_Create(access_token, userid, name, department, position, mobile, gender, email, weixinid);

            if (IsAccessTokenError(rel))
            {
                rel = QyAPI.User_Create(access_token, userid, name, department, position, mobile, gender, email, weixinid);
                IsAccessTokenError(rel, false);
            }
            return(rel);
        }