Esempio n. 1
0
        /// <summary>
        /// 获取个人用户信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public PersonalUserinfoResponse personalUserinfo(PersonalUserinfoRequest request)
        {
            SignRequest signRequest = new SignRequest(request);

            signRequest.apiUrl = ApiUrlConstant.Personal.UserInfo;
            PersonalUserinfoResponse response = this.Send <PersonalUserinfoResponse>(signRequest);

            return(response);
        }
Esempio n. 2
0
 /// <summary>
 /// 查询个人用户信息
 /// </summary>
 public void personalUserinfo()
 {
     try
     {
         PersonalUserinfoResponse personalUserinfoResponse = client.Personal.personalUserinfo(new PersonalUserinfoRequest("00765245060136194048"));
         Console.WriteLine("查询个人用户信息-响应数据:" + JSONUtil.getJsonStringFromObject(personalUserinfoResponse));
     }
     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);
     }
 }