@@ -33,7 +33,7 @@ require_once("vendor/autoload.php");
3333Download the ` Omnisend.php ` file and include it manually:
3434
3535``` php
36- require_once('Omnisend.php');
36+ require_once('Omnisend.php');
3737```
3838** Note:** check and correct if needed "Omnisend.php" path.
3939
@@ -43,7 +43,8 @@ Available methods & options
4343``` php
4444$options = array(
4545 'timeout' => 30,
46- 'verifySSL' => false
46+ 'verifySSL' => false,
47+ 'curlOptions' => array()
4748);
4849$omnisend = new Omnisend('API-KEY', $options);
4950```
@@ -54,6 +55,7 @@ Available options:
5455| ---| ---| ---|
5556|timeout|int|Timeout. If not passed - will be calculated depending on PHP max_execution_time
5657|verifySSL|bool|Default - true. Enable (true) or disable (false) SSL verification.
58+ |curlOptions|array|array of CURL_OPT_ * of options passed to ` curl_setopt_array() `
5759
5860** Available methods**
5961
@@ -131,10 +133,10 @@ $omnisend = new Omnisend('your-api-key');
131133$contacts = $omnisend->post(
132134 'contacts',
133135 array(
134- 135- "firstName" => "Vanessa",
136- "lastName" => "Kensington",
137- "status" => "subscribed",
136+ 137+ "firstName" => "Vanessa",
138+ "lastName" => "Kensington",
139+ "status" => "subscribed",
138140 "statusDate" => "2018-12-11T10:29:43+00:00"
139141 )
140142);
@@ -146,7 +148,7 @@ if ($contacts) {
146148 //request was successful
147149
148150 //print response
149- print_r($contacts);
151+ print_r($contacts);
150152 //get contactID from response
151153 $contactID = $contacts['contactID'];
152154} else {
0 commit comments