Consume CheetahMail's SOAP API.
- PHP >= 5.6
- Package php-soap (ext-soap extension)
composer require pgrimaud/cheetahmail-sdk
All services are available.
Get a campaign :
use Cheetahmail\Campaigns\Campaigns\AuthHeader; use Cheetahmail\Campaigns\Campaigns\Campaigns; use Cheetahmail\Campaigns\Campaigns\GetCampaign; $auth = new AuthHeader(1234); $auth->setUserName('1234_wssoap'); $auth->setPassword('aGVsbG93b3JsZGJ1ZGR5ITopPQ=='); $campaignService = new Campaigns($auth); $campaign = new GetCampaign('123456798'); $campaignResponse = $campaignService->GetCampaign($campaign); print_r($campaignResponse);
Licensed under the terms of the MIT License.