2017 © Pedro PelĂĄez
 

library campaign-commander

Client for the Campaign Commander API (wrapper)

image

mylittleparis/campaign-commander

Client for the Campaign Commander API (wrapper)

  • Monday, July 18, 2016
  • by ludofleury
  • Repository
  • 30 Watchers
  • 3 Stars
  • 1,956 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Campaign Commander

Campaign Commander is the stuff you need to manage your Campaign Commander., (*1)

About

PHP Campaign Commander is a library to communicate with the Campaign Commander API., (*2)

License

PHP Campaign Commander is BSD licensed., (*3)

Documentation

Requirements

  • PHP >= 5.4.4
  • soap extension

Installation through Composer

{
    "require": {
        "mylittleparis/campaign-commander": "dev-master"
    },
}   

Architecture

This library is structured on 2 layers:, (*4)

  • Low-level API clients : only SOAP (using BeSimple lib) clients are provided (one for standard requests, one for requests containing attachments)
  • Mid-level API services : using low-level clients, they are mapped to CampaignCommander API methods and allow you to really work with CampaignCommander

Basic usage

Principle:

  1. Instantiate a mid-level service with an appropriate low-level API client factory
  2. Enjoy the service methods :)

Example : create an export from a segment

use BeSimple\SoapClient as Soap;
use MyLittle\CampaignCommander\API\SOAP as Client;
use MyLittle\CampaignCommander\Service as Service;

$clientFactory = new Client\StandardClientFactory(new Soap\SoapClientBuilder(), 'login', 'password', 'key', 'http://emvapi.emv3.com');
$service = new Service\MemberExportService($clientFactory);
try {
    $result = $service->createDownloadByMailinglist('ID_SEGMENT', 'ALL_MEMBERS', 'EMAIL,FIELD1', 'PIPE', 'true', 'EMAIL', 'true');
}

Testing

PHPUnit

this library comes with some unit tests. if you plan to run these tests, you can do it simply by running phpunit in the project root directory like that :, (*5)

$ cd /path/to/lib
$ phpunit

For more information about PHPUnit, you can read the official documentation, (*6)

The tests are located in the folder tests/., (*7)

Sites using this class

The Versions

18/07 2016

1.x-dev

1.9999999.9999999.9999999-dev

Client for the Campaign Commander API (wrapper)

  Sources   Download

The Requires

  • php >=5.4.4
  • ext-soap *

 

by Tijs Verkoyen

api email campaign commander

18/07 2016

1.1.5

1.1.5.0

Client for the Campaign Commander API (wrapper)

  Sources   Download

The Requires

  • php >=5.4.4
  • ext-soap *

 

by Tijs Verkoyen

api email campaign commander

24/02 2015

1.1.4

1.1.4.0

Client for the Campaign Commander API (wrapper)

  Sources   Download

The Requires

  • php >=5.4.4
  • ext-soap *

 

by Tijs Verkoyen

api email campaign commander

11/02 2015

dev-master

9999999-dev

Client for the Campaign Commander API (wrapper)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Tijs Verkoyen
by Arnaud Lefèvre

api email campaign commander

11/02 2015

2.0.0

2.0.0.0

Client for the Campaign Commander API (wrapper)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Tijs Verkoyen
by Arnaud Lefèvre

api email campaign commander

06/09 2013

1.1.3

1.1.3.0

Client for the Campaign Commander API (wrapper)

  Sources   Download

The Requires

  • php >=5.4.4
  • ext-soap *

 

by Tijs Verkoyen

api email campaign commander