diff --git a/lib/API.php b/lib/API.php index 2ff5b55..d66e3de 100644 --- a/lib/API.php +++ b/lib/API.php @@ -25,7 +25,7 @@ class API { protected $API_VERSION = '1'; protected $API_HEADER_KEY = 'X-SWU-API-KEY'; protected $API_HEADER_CLIENT = 'X-SWU-API-CLIENT'; - protected $API_CLIENT_VERSION = "6.5.0"; + protected $API_CLIENT_VERSION = "6.5.1"; protected $API_CLIENT_STUB = "php-%s"; protected $API_DEBUG_HANDLER = null; diff --git a/lib/Error.php b/lib/Error.php index a82822d..5787c79 100644 --- a/lib/Error.php +++ b/lib/Error.php @@ -9,6 +9,10 @@ class API_Error extends \Exception { + private $status = null; + private $body = null; + private $json = null; + public function __construct($message=null, $status=null, $body=null, $json=null) { parent::__construct($message); diff --git a/test/APITest.php b/test/APITest.php index 83c27e6..ea4860d 100644 --- a/test/APITest.php +++ b/test/APITest.php @@ -37,6 +37,20 @@ class APITest extends PHPUnit_Framework_TestCase private $data = null; private $cc = null; private $bcc = null; + private $good_html = null; + private $bad_html = null; + private $bad_email = null; + private $incompleteRecipient = null; + private $inline = null; + private $files = null; + private $tags = null; + private $template_id = null; + private $version_id = null; + private $enabled_drip_campaign_id = null; + private $enabled_drip_campaign_step_id = null; + private $disabled_drip_campaign_id = null; + private $false_drip_campaign_id = null; + private $log_id = null; function setUp(): void{ @@ -108,7 +122,7 @@ function setUp(): void{ array("data" => $this->data) ); - $this->log_id = getenv('LOG_ID') ?: 'log_152fea9a9673c4acff249d5778b3ccef-3'; + $this->log_id = getenv('LOG_ID') ?: 'log_cd831cc65b537ef5aa492f635535346e-3'; } function tearDown(): void {