Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Allow broadcast API calls

Compare
Choose a tag to compare
@methylbro methylbro released this 06 Dec 10:32
· 27 commits to master since this release

Changelog

  • Require dependency to symfony/config component
  • Handle both Individual and Broadcast Selligent API endpoints
  • Adding helper to generate the XML document to broadcast complete HTML campaign

Breaking Change

The method Connection::open() has changed his signature. Now it will accept only an array who will contains a valid Mediapart/Selligent/Configuration tree.

To fix the breaking change, change your call from :

$config = [
    'login' => '***', 
    'password' => '***',
    'wsdl' => 'http://emsecure/?wsdl'
];

$connection = new Connection();
$client = $connection->open(
    $config['login'],
    $config['password'],
    $config['wsdl']
);

to :

$config = [
    'login' => '***', 
    'password' => '***',
    'wsdl' => 'http://emsecure/?wsdl'
];

$connection = new Connection();
$client = $connection->open($config);