diff --git a/src/Snowcap/Emarsys/Client.php b/src/Snowcap/Emarsys/Client.php index 875be62..3f4bbea 100644 --- a/src/Snowcap/Emarsys/Client.php +++ b/src/Snowcap/Emarsys/Client.php @@ -893,8 +893,12 @@ public function addBlacklistEntries(array $emails = array(), array $domains = ar * @throws ClientException * @throws ServerException */ - protected function send($method = 'GET', $uri, array $body = array()) + protected function send($method = 'GET', $uri = '', array $body = array()) { + if (empty($uri)) { + throw new ServerException('The uri must not be empty.'); + } + $headers = array('Content-Type: application/json', 'X-WSSE: ' . $this->getAuthenticationSignature()); $uri = $this->baseUrl . $uri;