This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
Releases: mediapart/selligent
Releases · mediapart/selligent
New release
Bugfixes
Added functionalities
Changelog
- Handle HYPERLINKS_TO_SENSORS attribute,
- Add Broadcast Helper.
🔗 HYPERLINKS_TO_SENSORS
Adding the ability to use the HYPERLINKS_TO_SENSORS
attribute in broadcast campaigns if you want a hyperlink to be measured as a sensor.
<?php
use Mediapart\Selligent\Broadcast\Email;
$email = new Email();
$email->setHyperlinksToSensors(true);
📢 Broadcast Helper
In the same idea that the Transport class, I proposed to add a Broadcast
class to helps library end user to trigger broadcasted campaigns.
$broadcast = new Broadcast($client);
$broadcast->setLogger($logger);
$response = $broadcast->triggerCampaign($campaign);
Due to naming conflicts, I moved IndividualTest
and BroadcastTest
into tests/Integrated/
.
Bugfixes
Changelog
- Fix required constraint of list config param
- Fix campaign state constant values has to be in capital letters
- Fix START_DT format in sent XML Campaign to
YmdHmi
- Skip tests (in real testsuite) if no required env vars are defined
Unit tests out of the box
Now you can run directly phpunit tests without any param or environment variables. The real
testsuite, who requires a bunch of env vars, are now skipped if there are not set.
Allow broadcast API calls
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);
Bugfixes
First Release
v0.1 fix Call to a member function getValue() on string