public function assertConstructorCall(AbstractAction $action, $expectedUrl, $expectedMethod, $expectedHttpClient, $expectedApiKey) { $this->assertEquals($expectedUrl, $action->getUrl()); $this->assertEquals($expectedMethod, $action->getMethod()); $this->assertEquals($expectedHttpClient, $expectedHttpClient); $this->assertEquals($expectedApiKey, $action->getApiKey()); }
public function __construct(HttpClient $client, $endpoint, $campaignID, $mailingListID, $apiKey) { if (!is_null($mailingListID) && is_null($campaignID)) { $callContext = new CallContext($client, 'POST', $endpoint, '/subscribers/' . $mailingListID . '/unsubscribe.json', $apiKey); } elseif (is_null($mailingListID) && !is_null($campaignID)) { $callContext = new CallContext($client, 'POST', $endpoint, '/subscribers/' . $campaignID . '/unsubscribe.json', $apiKey); } elseif (!is_null($mailingListID) && !is_null($campaignID)) { $callContext = new CallContext($client, 'POST', $endpoint, '/subscribers/' . $mailingListID . '/' . $campaignID . '/unsubscribe.json', $apiKey); } else { $callContext = new CallContext($client, 'POST', $endpoint, '/subscribers/unsubscribe.json', $apiKey); } parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $segmentID, $apiKey) { $callContext = new CallContext($client, 'GET', $endpoint, "/lists/{$mailingListID}/segments/{$segmentID}/members.json", $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $apiKey) { $callContext = new CallContext($client, 'DELETE', $endpoint, '/lists/' . $mailingListID . '/delete.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $apiKey) { $callContext = new CallContext($client, 'GET', $endpoint, '/lists/' . $mailingListID . '/subscribers.json', $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $client, $endpoint, $mailingListID, $apiKey) { $callContext = new CallContext($client, 'POST', $endpoint, '/subscribers/' . $mailingListID . '/remove.json', $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $httpClient, $endpoint, $campaignID, $apiKey) { $callContext = new CallContext($httpClient, 'GET', $endpoint, '/campaigns/' . $campaignID . '/view.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, Campaign $campaign, $apiKey) { $campaignID = $campaign->getID(); $callContext = new CallContext($client, 'POST', $endpoint, '/campaigns/' . $campaignID . '/update.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $segmentID, $criteriaID, $apiKey) { $callContext = new CallContext($client, 'DELETE', $endpoint, "/lists/{$mailingListID}/segments/{$segmentID}/criteria/{$criteriaID}/delete.json", $apiKey); parent::__construct($callContext); }
function __construct(HttpClient $client, $endpoint, $campaignID, $apiKey) { $callContext = new CallContext($client, 'POST', $endpoint, '/campaigns/' . $campaignID . '/send_test.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $page, $pageSize, $apiKey) { $callContext = new CallContext($client, 'GET', $endpoint, "/lists/{$page}/{$pageSize}.json", $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $httpClient, $endpoint, $mailingListID, $apiKey) { $callContext = new CallContext($httpClient, 'POST', $endpoint, "/lists/{$mailingListID}/segments/create.json", $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $httpClient, $endpoint, $mailingListID, $customFieldID, $apiKey) { $callContext = new CallContext($httpClient, 'DELETE', $endpoint, '/lists/' . $mailingListID . '/customfields/' . $customFieldID . '/delete.json', $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $httpClient, $endpoint, $apiKey) { $callContext = new CallContext($httpClient, 'GET', $endpoint, '/senders/find_all.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $apiKey) { $callContext = new CallContext($client, 'POST', $endpoint, '/campaigns/create.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $customFieldID, $apiKey) { $callContext = new CallContext($client, 'POST', $endpoint, "/lists/{$mailingListID}/customfields/{$customFieldID}/update.json", $apiKey); parent::__construct($callContext); }
public function __construct(HttpClient $httpClient, $endpoint, $page, $pageSize, $apiKey) { $callContext = new CallContext($httpClient, 'GET', $endpoint, "/campaigns/{$page}/{$pageSize}.json", $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $campaignID, $apiKey) { $callContext = new CallContext($client, 'DELETE', $endpoint, '/campaigns/' . $campaignID . '/delete.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $campaignID, $apiKey) { $callContext = new CallContext($client, 'GET', $endpoint, '/campaigns/' . $campaignID . '/stats/countries.json', $apiKey); parent::__construct($callContext); }
public function __construct($client, $endpoint, $mailingListID, $apiKey) { $callContext = new CallContext($client, 'POST', $endpoint, '/lists/' . $mailingListID . '/customfields/create.json', $apiKey); parent::__construct($callContext); }