pgrimaud/cheetahmail-sdk

CheetahMail PHP SDK - Consume CheetahMail's SOAP API

3.1.1 2018-05-17 15:49 UTC

This package is auto-updated.

Last update: 2024-11-06 09:33:32 UTC


README

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.