def create(self, user_id, name, department=None, position=None,
               mobile=None, gender=0, tel=None, email=None,
               weixin_id=None, extattr=None):
        """
        创建成员

        https://work.weixin.qq.com/api/doc#90000/90135/90195
        """
        user_data = optionaldict()
        user_data['userid'] = user_id
        user_data['name'] = name
        user_data['gender'] = gender
        user_data['department'] = department
        user_data['position'] = position
        user_data['mobile'] = mobile
        user_data['tel'] = tel
        user_data['email'] = email
        user_data['weixinid'] = weixin_id
        user_data['extattr'] = extattr

        return self._post(
            'user/create',
            data=user_data
        )
def create ( self , user_id , name , department = None , position = None , mobile = None , gender = 0 , tel = None , email = None , weixin_id = None , extattr = None ) : user_data = optionaldict ( ) user_data [ 'userid' ] = user_id user_data [ 'name' ] = name user_data [ 'gender' ] = gender user_data [ 'department' ] = department user_data [ 'position' ] = position user_data [ 'mobile' ] = mobile user_data [ 'tel' ] = tel user_data [ 'email' ] = email user_data [ 'weixinid' ] = weixin_id user_data [ 'extattr' ] = extattr return self . _post ( 'user/create' , data = user_data )
创建成员

        https://work.weixin.qq.com/api/doc#90000/90135/90195