Create a campaign
Ajout_Campagne
int Ajout_Campagne (id_campagne, login)
Description
Creates a new campaign and returns its identifier.
Parameters (required)
login: customer ID (nichandle)
motdepasse: the password
Return value
The campaign identifier id, or an error message.
Error messages
No field must be left empty login
No field must be left empty motdepasse
Authentication error (invalid login / password)
Examples
<?php
include('nusoap/nusoap.php');
$client = new soapclient('http://www.mdworks.info/_soap/control.php');
$params = ['login' => 'your_login', 'motdepasse' => 'your_password'];
$campaign_id = $client->call('Ajout_Campagne', $params);
if ($client->fault) {
die("SOAP error: {$client->faultstring}");
}
echo "Created campaign ID: {$campaign_id}\n";Last updated on