@ 2016-01-22T14:25:35Z <?php
<?php
// Extends SoapClient (PHP native) for EMS authentication process
class SoapClientEMS extends SoapClient
{
const EMS_WS_NAMESPACE = 'http://ws.ems6.net/';
function SoapClientEMS($Login, $Password, $Idmlist, $wsdl, $options = array())
{
parent::__construct($wsdl, $options);
$this->__setSoapHeaders($this->createHeader($Login, $Password, $Idmlist));
}
private function createHeader($Login, $Password, $Idmlist)
{
@$struct->UserName = new SoapVar($Login, XSD_STRING, null, null, null, self::EMS_WS_NAMESPACE);
$struct->Password = new SoapVar($Password, XSD_STRING, null, null, null, self::EMS_WS_NAMESPACE);
$struct->IdMlist = new SoapVar($Idmlist, XSD_INTEGER, null, null, null, self::EMS_WS_NAMESPACE);
$header_values = new SoapVar($struct, SOAP_ENC_OBJECT, null, null,null, self::EMS_WS_NAMESPACE);
$header = new SoapHeader(self::EMS_WS_NAMESPACE, "AuthHeader", $header_values);
return $header;
}
}
// declare variables for soap authentication
// API LOGIN
$Login = 'Email_API';
// API SECRET
$Pwd = 'i8piZZa4u';
// DATABASE
$Idmlist = '2093191961';
$mySegment = new SoapClientEMS( $Login, $Pwd, $Idmlist, "https://api.cheetahmail.fr/v1/segment.asmx?WSDL", $Options = array());
// WebMethod call
$result = $mySegment->ListSegment();
//Affichage du Results brut
if(isset($result->ListSegmentResult->string)){
if(count($result->ListSegmentResult->string) == 1){
echo $result->ListSegmentResult->string;
}
else{
foreach ($result->ListSegmentResult->string as $segment) {
echo $segment;
}
}
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.0.2 0.033 0.073 20.06 7.0.1 0.010 0.083 20.19 7.0.0 0.003 0.083 20.10 5.6.17 0.027 0.090 20.58 5.6.16 0.000 0.073 20.51 5.6.15 0.010 0.077 18.23 5.6.14 0.007 0.040 18.14 5.6.13 0.003 0.043 18.18 5.6.12 0.010 0.083 20.89 5.6.11 0.010 0.063 20.97 5.6.10 0.017 0.073 20.97 5.6.9 0.007 0.083 20.99 5.6.8 0.000 0.043 20.28 5.5.31 0.040 0.067 20.35 5.5.30 0.010 0.067 18.02 5.5.29 0.007 0.077 17.98 5.5.28 0.003 0.060 20.73 5.5.27 0.017 0.073 20.64 5.5.26 0.003 0.050 20.84 5.5.25 0.017 0.067 20.57 5.5.24 0.003 0.077 20.21
preferences:dark mode live preview
137.15 ms | 1394 KiB | 7 Q