Edit campaign parameters
Modif_Parametres_Campagne
int Modif_Parametres_Campagne (id_campagne, login, password, champ, valeur)
Only campaigns that have not yet been sent can be edited.
Description
Edit the parameters of a campaign.
Parameters (required)
login: customer ID (nichandle)
motdepasse: the password
id_campagne: campaign identifier
champ: name of the field whose value must be edited
value: new value of the field
List of editable fields and allowed values
| Field | Value |
|---|---|
| reference | Campaign reference (internal reference) |
| nom_expediteur | Sender name |
| reply | Reply-to email address |
| objet | Message subject |
| images_jointes | 0 to disable image embedding, 1 to enable it |
| lien_desinscription | 0 to disable the unsubscribe link, 1 to enable it |
Return value
true
Error messages
No field must be left empty login
No field must be left empty motdepasse
Authentication error (invalid login / password)
This campaign does not appear to belong to you
This field is not in the list of editable fields
This campaign has already been sent
Examples
<?php
include('nusoap/nusoap.php');
$client = new soapclient('http://www.mdworks.info/_soap/control.php');
$params = [
'id_campagne' => 12345,
'login' => 'your_login',
'motdepasse' => 'your_password',
'champ' => 'nom_expediteur',
'valeur' => 'Ediware',
];
$ok = $client->call('Modif_Parametres_Campagne', $params);
if ($client->fault) {
die("SOAP error: {$client->faultstring}");
}
var_dump($ok);Last updated on