Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • ID des Mandanten
  • API-Key (optionale Authentifizierung, wenn nicht angegeben, dann wird die Authentifizierung über die IP-Adressen vorgenommen)
  • ID's der Kanäle
  • Zeitraum (jeweils im "xs:dateTime"-Format, z.B. 2017-10-23T20:29:00)
  • Kampagnen-ID's

Beispiel

Code Block
themeEclipse
languagephp
titleBeispiel für die Versandauswertung von Transaktionsmails
firstline2
linenumberstrue
$client = new SoapClient($wsdlUrl);
date_default_timezone_set('Europe/Berlin');
$statistic = new StdClass();
$statistic->mandatorId = 0;
$statistic->channelIds = array();
array_push($statistic->channelIds, 1);
$statistic->timePeriod = new StdClass();
$statistic->timePeriod->startTime = mktime(11, 38, 0, 1, 1, 2012);
$statistic->timePeriod->endTime = mktime(12, 0, 0, 4, 31, 2013);

try {
  $result = $client->transactionMailSendStatistic($statistic);
  var_dump($result);
} catch (Exception $e) {
  echo "Fehler aufgetreten: " . $e->getMessage() . "\r\n";
}  

...