public function sendRequest($requestParameters, $requestBody, $specifiedRequestUri, $throwExceptionOnError = false)
    {
        // This step is required since the configuration settings might have been changed.
        $this->resetCompressorAndSerializer();
        //Get the OAuth Authorization Mode for the request, OAuth 1 or OAuth 2.
        $oMode = $this->context->IppConfiguration->OAuthMode;
        // Determine dest URI
        $requestUri = $this->getDestinationURL($requestParameters, $oMode, $specifiedRequestUri);
        //minorVersion support
        $requestUri = $this->appendMinorVersionToRequestURI($requestUri);
        //Check for the HTTP method
        $HttpMethod = $this->checkHTTPMethod($requestParameters);
        $queryParameters = $this->parseURL($requestUri);
        $baseURL = $this->getBaseURL($requestUri);
        if($oMode == CoreConstants::OAUTH1){
          return $this->OAuth1APICall($baseURL, $queryParameters, $HttpMethod, $requestUri, $requestParameters, $requestBody, $throwExceptionOnError);
        } else if ($oMode == CoreConstants::OAUTH2){
          return $this->OAuth2APICall($baseURL, $queryParameters, $HttpMethod, $requestUri, $requestParameters, $requestBody, $throwExceptionOnError);
        } else{
           throw new SdkException("OAuth Mode not supported.");
        }
    }
public function sendRequest($requestParameters, $requestBody, $specifiedRequestUri, $throwExceptionOnError = false)
    {
        // This step is required since the configuration settings might have been changed.
        $this->resetCompressorAndSerializer();
        //Get the OAuth Authorization Mode for the request, OAuth 1 or OAuth 2.
        $oMode = $this->context->IppConfiguration->OAuthMode;
        // Determine dest URI
        $requestUri = $this->getDestinationURL($requestParameters, $oMode, $specifiedRequestUri);
        //minorVersion support
        $requestUri = $this->appendMinorVersionToRequestURI($requestUri);
        //Check for the HTTP method
        $HttpMethod = $this->checkHTTPMethod($requestParameters);
        $queryParameters = $this->parseURL($requestUri);
        $baseURL = $this->getBaseURL($requestUri);
        if($oMode == CoreConstants::OAUTH1){
          return $this->OAuth1APICall($baseURL, $queryParameters, $HttpMethod, $requestUri, $requestParameters, $requestBody, $throwExceptionOnError);
        } else if ($oMode == CoreConstants::OAUTH2){
          return $this->OAuth2APICall($baseURL, $queryParameters, $HttpMethod, $requestUri, $requestParameters, $requestBody, $throwExceptionOnError);
        } else{
           throw new SdkException("OAuth Mode not supported.");
        }
    }
public function sendRequest ( $ requestParameters , $ requestBody , $ specifiedRequestUri , $ throwExceptionOnError = false ) { // This step is required since the configuration settings might have been changed. $ this -> resetCompressorAndSerializer ( ) ; //Get the OAuth Authorization Mode for the request, OAuth 1 or OAuth 2. $ oMode = $ this -> context -> IppConfiguration -> OAuthMode ; // Determine dest URI $ requestUri = $ this -> getDestinationURL ( $ requestParameters , $ oMode , $ specifiedRequestUri ) ; //minorVersion support $ requestUri = $ this -> appendMinorVersionToRequestURI ( $ requestUri ) ; //Check for the HTTP method $ HttpMethod = $ this -> checkHTTPMethod ( $ requestParameters ) ; $ queryParameters = $ this -> parseURL ( $ requestUri ) ; $ baseURL = $ this -> getBaseURL ( $ requestUri ) ; if ( $ oMode == CoreConstants :: OAUTH1 ) { return $ this -> OAuth1APICall ( $ baseURL , $ queryParameters , $ HttpMethod , $ requestUri , $ requestParameters , $ requestBody , $ throwExceptionOnError ) ; } else if ( $ oMode == CoreConstants :: OAUTH2 ) { return $ this -> OAuth2APICall ( $ baseURL , $ queryParameters , $ HttpMethod , $ requestUri , $ requestParameters , $ requestBody , $ throwExceptionOnError ) ; } else { throw new SdkException ( "OAuth Mode not supported." ) ; } }
Sending an request to QuickBooks Online based on the Request parameters, body and URI.

@param  RequestParameters $requestParameters     The request parameter for this API Call
@param  String           $requestBody           The body of the API call
@param  String           $specifiedRequestUri   The user specified URI for the request
@param  Boolean          $throwExceptionOnError If throw an exception whent he return http status is not 200. Default is false
@return null|array       APIResult              The result of this Http Request.
Sending an request to QuickBooks Online based on the Request parameters body and URI .