Skip to content
Campaign information

List the campaigns associated with your account

Liste_Campagnes

array Liste_Campagnes(login, motdepasse, debut)

Description

Retrieve an array where each row is an array with the following keys: id, reference, date_creation, date_envoi, return_path, gestion_npai, nom_expediteur, reply, objet, total_mail, images_jointes, lien_desinscription, passphrase. Or array(“Erreur”, error_type, error_description) if an error occurred.

Parameters (required)

login: customer ID (nichandle)

motdepasse: the password

debut: linux timestamp date

Return value

array( 1 -> array ( ‘id’, ‘reference’, ‘date_creation’, ‘date_envoi’, ‘return_path’, ‘gestion_npai’, ’nom_expediteur’, ‘reply’, ‘objet’, ’total_mail’, ‘images_jointes’, ’lien_desinscription’, ‘passphrase’ ), 2-> …);** Error messages**

No field must be left empty debut. No field must be left empty login. No field must be left empty motdepasse.

Example with NuSOAP

include('nusoap/nusoap.php');

$client = new soapclient('http://www.mdworks.info/_soap/control.php');

$parametres = array( 'login'=>'your_login', 'motdepasse'=>'your_password', 'debut'=>time()-24*3600 );

$variable=$client->call('Liste_campagnes', $parametres);

// Retrieve the error, if any
if($client->fault) die("Error:Code: {$client->faultcode}" . "Detail: {$client->faultactor}" . "Solution: {$client->faultstring}");

Example with PHP5

try { $client = new SoapClient(null, array('location' => "https://www.eml-srv.com/_soap/control.php", 'uri'      => "https://www.eml-srv.com", 'encoding'=>'ISO-8859-1' ));

$variable = $client->Liste_Campagnes('your_login','your_password', time()-24*3600); //or //$variable = $client->__soapCall(Liste_Campagnes,$parametres);

print_r($variable); } catch (SoapFault $fault) {
  trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);

}
Last updated on