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.

Examples

<?php
include('nusoap/nusoap.php');

$client = new soapclient('http://www.mdworks.info/_soap/control.php');
$params = [
    'login'      => 'your_login',
    'motdepasse' => 'your_password',
    'debut'      => time() - 24 * 3600,
];

$campaigns = $client->call('Liste_Campagnes', $params);

if ($client->fault) {
    die("SOAP error: {$client->faultstring}");
}

print_r($campaigns);
Last updated on