Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 84cd8dd

Browse files
v1.2
1 parent 73c12fc commit 84cd8dd

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

composer.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"name": "omnisend/php-sdk",
3-
"description": "Simple to use Omnisend API v3 wrapper",
4-
"type": "library",
5-
"version": "1.1",
6-
"minimum-stability": "dev",
7-
"require": {
8-
"php": ">=5.3.0",
9-
"ext-curl": "*"
10-
},
11-
"autoload": {
12-
"psr-0": {
13-
"Omnisend": "src/"
14-
}
2+
"name": "omnisend/php-sdk",
3+
"description": "Simple to use Omnisend API v3 wrapper",
4+
"type": "library",
5+
"version": "1.2",
6+
"minimum-stability": "dev",
7+
"require": {
8+
"php": ">=5.3.0",
9+
"ext-curl": "*"
10+
},
11+
"autoload": {
12+
"psr-0": {
13+
"Omnisend": "src/"
1514
}
16-
}
15+
}
16+
}

src/Omnisend.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This wrapper: https://github.com/omnisend/php-sdk
77
*
88
* @author Omnisend
9-
* @version 1.1
9+
* @version 1.2
1010
*/
1111

1212
class Omnisend
@@ -18,7 +18,7 @@ class Omnisend
1818
private $verifySSL = true;
1919
private $lastError = array();
2020
private $useCurl = true;
21-
private $version = "1.1";
21+
private $version = "1.2";
2222

2323
public function __construct($apiKey, $options = array())
2424
{
@@ -218,7 +218,7 @@ private function omnisendApi($endpoint, $method = "POST", $fields = array(), $qu
218218
if ($this->useCurl) {
219219
$ch = curl_init();
220220
curl_setopt($ch, CURLOPT_URL, $link);
221-
curl_setopt($ch, CURLOPT_USERAGENT, 'Omnisend/PHP-SDK/1.1');
221+
curl_setopt($ch, CURLOPT_USERAGENT, 'Omnisend/PHP-SDK/1.2');
222222
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
223223
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
224224
curl_setopt($ch, CURLOPT_VERBOSE, false);

0 commit comments

Comments
 (0)