internal override PendingsResponse PendingsRequest(string rfc) { PendingsResponseHandler handler = new PendingsResponseHandler(); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); HttpWebRequest request = RequestPendings(rfc); return(handler.GetResponse(request)); } catch (Exception e) { return(handler.HandleException(e)); } }
internal PendingsResponse PendingsRequest(string rfc) { PendingsResponseHandler handler = new PendingsResponseHandler(); var request = RequestPendings(rfc); try { new Validation(Url, User, Password, Token).ValidateHeaderParameters(); request.ContentType = "application/json"; request.ContentLength = 0; request.Method = WebRequestMethods.Http.Get; var headers = GetHeaders(); var proxy = RequestHelper.ProxySettings(Proxy, ProxyPort); return(handler.GetResponse(Url, headers, $"pendings/{rfc}", proxy)); } catch (Exception e) { return(handler.HandleException(e)); } }