/// <summary> /// 企业三要素认证 /// </summary> public void enterpriseThreeQuery() { EnterpriseQueryRequest request = new EnterpriseQueryRequest(); request.keyword = "92370785MA3NTXJD9J"; //注册号/统一社会信用代码(注册号支持15位,统一社会信用代码支持18位) request.name = "测试科技公司"; //企业名称 request.oper_name = "李牟"; //企业法人 try { EnterpriseQueryResponse response = client.Auth.enterpriseThreeQuery(request); Console.WriteLine("证件识别-响应数据:" + JSONUtil.getJsonStringFromObject(response)); } catch (SignApplicationException sae) { // 捕获网关校验数据 Console.WriteLine("证件识别-网关异常状态码为:" + sae.return_code); Console.WriteLine("证件识别-网关异常信息为:" + sae.return_message); } catch (SignServerException sse) { // 捕获网关校验数据 Console.WriteLine("证件识别-业务异常状态码为:" + sse.result_code); Console.WriteLine("证件识别-业务异常信息为:" + sse.result_message); } }
/// <summary> /// 企业三要素认证 /// </summary> /// <param name="request"></param> /// <returns></returns> public EnterpriseQueryResponse enterpriseThreeQuery(EnterpriseQueryRequest request) { SignRequest signRequest = new SignRequest(request); signRequest.apiUrl = ApiUrlConstant.Auth.enterpriseThreeQuery; EnterpriseQueryResponse response = this.Send <EnterpriseQueryResponse>(signRequest); return(response); }