Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions lib/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
16 changes: 15 additions & 1 deletion test/APITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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 {
Expand Down