Skip to content
Retrieve all unsubscribed emails from your account

Retrieve all unsubscribed emails from your account

By Mounir 1 min read

Retrieve the blacklist associated with your account

array Extrait_Blackliste( login, motdepasse)

Description

Retrieve the list of all email addresses of people who no longer wish to receive messages from your account.

Parameters (required)

login: customer ID (nichandle)

motdepasse: the password

Return value

An array where each row contains an email address:

  • [id] => email address

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

Example with NuSOAP

//Function call include('nusoap/nusoap.php');

$client = new soapclient('https://www.eml-srv.com/_soap/control.php'); // Remove the 's' from https if CURL is not installed

$parametres = array( 'login'=>'your_login', 'motdepasse'=>'your_password' );

$variable=$client->call('Extrait_Blackliste', $parametres);

// Retrieve the error, if any
if($client->fault)
die("Error:Code: {$client->faultcode}"
. "Detail: {$client->faultactor}"
. "Solution: {$client->faultstring}");

// Display print_r($variable); </source>

Which gives a result like:

Array
(
    [0] => support@ediware.net
    [1] => info@ediware.net
)

Example with PHP5

// Function call
try { $client = new SoapClient(null, array('location' => "https://www.eml-srv.com/_soap/control.php", 'uri'      => "https://www.eml-srv.com", 'encoding'=>'ISO-8859-1'  ));

$variable = $client->Extrait_Blackliste('your_login','your_password'); print_r($variable); } catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);

}

Which gives a result like:

Array
(
    [0] => support@ediware.net
    [1] => info@ediware.net
)
Last updated on