Add an address
Add an address to the recipient list.
array Ajout_Adresse_Campagne( login, motdepasse, id_campagne, ligne)
Description
Add a row to the recipient list of a campaign.
Parameters (required)
login: customer ID (nichandle)
motdepasse: the password
id_campagne: the campaign identifier
ligne: an array containing the values to insert. The email must always come first.
Example:
$ligne=array('test@example.com','Ediware','92120','Montrouge');In addition to the email, up to 8 custom fields can be added.
Return value
true (1) or false (0)
Error messages
No field must be left empty login
No field must be left empty motdepasse
No field must be left empty bdd
Authentication error (invalid login / password)
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');
$ligne = ['test@example.com', 'Ediware', '92120', 'Montrouge'];
$params = [
'login' => 'your_login',
'motdepasse' => 'your_password',
'id_campagne' => 12345,
'ligne' => $ligne,
];
$ok = $client->call('Ajout_Adresse_Campagne', $params);
if ($client->fault) {
die("SOAP error: {$client->faultstring}");
}
var_dump($ok);Last updated on