Skip to content

Send a campaign

By Mounir 2 min read

Envoi_Campagne

int Envoi_Campagne (id_campagne, login, motdepasse )

Description

Trigger the sending of the campaign with identifier id_campagne.

Parameters (required)

id_campagne: the campaign identifier (see [SOAP: List of campaigns associated with your account] to retrieve the identifier)

login: customer ID (nichandle)

motdepasse: the password

Return value

OK 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)

This campaign does not appear to belong to you

No address present for this campaign

Insufficient quota to send this campaign

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',
];

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

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

echo $response;
Last updated on