PHP code example of pgrimaud / cheetahmail-sdk
1. Go to this page and download the library: Download pgrimaud/cheetahmail-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pgrimaud / cheetahmail-sdk example snippets
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);