Skip to content

Send a test

By Mounir 2 min read

Envoi_BAT
int Envoi_BAT (id_campagne, login, password, email)

Description

Send a test (BAT) for campaign id_campagne to the address email.

Parameters (required)

login: customer ID (nichandle)

motdepasse: the password

id_campagne: the campaign identifier

email: the test email address.

Return value

An error, or OK.

Error messages

No field must be left empty login

No field must be left empty motdepasse

No field must be left empty email

Authentication error (invalid login / password)

This campaign does not appear to belong to you

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',
    'email'       => 'test@example.com',
];

$response = $client->call('Envoi_BAT', $params);

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

echo $response;
Last updated on