Skip to content
CheetahMail PHP SDK - Consume CheetahMail's SOAP API
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
.gitignore
LICENSE
README.md
composer.json

README.md

CheetahMail SDK

Consume CheetahMail's SOAP API.

Requirements

  • PHP >= 5.6
  • Package php-soap (ext-soap extension)

Installation

composer require pgrimaud/cheetahmail-sdk

Services available

  • Admin
    • Notify
  • Campaigns
    • BodyManager
    • Campaigns
    • ChronoContact
    • Configs
    • Content
    • ImageHosting
    • Sms
    • SmsUnit
  • Data
    • Filters
    • Segment
    • Ssis
    • Subscribers
    • Target
  • Statistics
    • Stats

All services are available.

Basic usage

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);

Licence

Licensed under the terms of the MIT License.

You can’t perform that action at this time.