diff --git a/src/Message/AbstractRestRequest.php b/src/Message/AbstractRestRequest.php index f354037..8249880 100644 --- a/src/Message/AbstractRestRequest.php +++ b/src/Message/AbstractRestRequest.php @@ -141,7 +141,7 @@ public function sendData($data) try { $httpResponse = $this->httpClient->request( $this->getHttpMethod(), - $this->getEndpoint(), + $requestUrl, array( 'Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->getToken(),