Skip to content

Add the message

By Mounir 2 min read

Add / edit the message of a campaign (not yet sent).

array Modif_Message_Campagne( id_campagne, login, motdepasse, url)

Description

Integrate a message into a campaign. The message is fetched from a URL provided as an argument.

Warning: the message source must be valid (head and body tags, plus style tags if applicable).

Parameters (required)

login: customer ID (nichandle)

motdepasse: the password

id_campagne: the campaign identifier

url: the URL.

Return value

true (1)

Error messages

No field must be left empty login

No field must be left empty motdepasse

No field must be left empty url

Campaign already sent

This campaign does not appear to belong to you

Examples

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

$client = new soapclient('https://www.mdworks.info/_soap/control.php');
$params = [
    'id_campagne' => 12345,
    'login'       => 'your_login',
    'motdepasse'  => 'your_password',
    'url'         => 'https://your-domain.com/message.html',
];

$ok = $client->call('Modif_Message_Campagne', $params);

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

echo $ok;
Last updated on