protected function sendRequest($endpoint, $httpMethod, Payload $payload = null)
    {
        return $this->requestHandler->sendRequest($endpoint, $httpMethod, $payload);
    }
protected function sendRequest($endpoint, $httpMethod, Payload $payload = null)
    {
        return $this->requestHandler->sendRequest($endpoint, $httpMethod, $payload);
    }
protected function sendRequest ( $ endpoint , $ httpMethod , Payload $ payload = null ) { return $ this -> requestHandler -> sendRequest ( $ endpoint , $ httpMethod , $ payload ) ; }
Make REST request to Connect API.
This method allows to stub the request call in test mode.

@param string $endpoint
@param string $httpMethod
@param Payload|NULL $payload

@return array

@throws RequestException
Make REST request to Connect API . This method allows to stub the request call in test mode .