Skip to content

Edit campaign parameters

By Mounir 2 min read

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

FieldValue
referenceCampaign reference (internal reference)
nom_expediteurSender name
replyReply-to email address
objetMessage subject
images_jointes0 to disable image embedding, 1 to enable it
lien_desinscription0 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