diff --git a/src/Omnisend.php b/src/Omnisend.php index 4145cea..0b803be 100644 --- a/src/Omnisend.php +++ b/src/Omnisend.php @@ -218,7 +218,7 @@ private function omnisendApi($endpoint, $method = "POST", $fields = array(), $qu if ($this->useCurl) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); - curl_setopt($ch, CURLOPT_USERAGENT, 'Omnisend/PHP-SDK/1.2'); + curl_setopt($ch, CURLOPT_USERAGENT, 'Omnisend/PHP-SDK/' . $this->version); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_VERBOSE, false);