📘 BACKCLICK Doku
Anmelden

Delete Subscribers

✎ Bearbeiten + Unterseite Historie (0)
⋯
Erstellt von Confluence-Import am · zuletzt geändert von Confluence-Import am · v1

Description

Use the feature DeleteSubscriber to remove a subscriber from mailing lists. If the subscriber does not belong to any mailing list afterwards, he will be removed from the system. It is possible to specify multiple addresses in one request, all these addresses will be removed from the same lists. Specifying different lists for each address is not possible. By indicating the Double-Opt-Out template you can trigger a confirmation from the recipient. Providing a wrong template-ID or none at all removes the addresses immediately.

Available starting from Backclick-Version: 5.9.0

In order to delete a subscriber from a list you have to provide the following information:

  • Mandator ID

  • E-Mail address(es)

  • mailing list(s)

  • Double-Opt-Out template ID (default: 0 => no DOO); optional

  • API-Key (optional authentication, if not provided the IP address will be used for authentication)

 

A list of removed and non-removed E-Mail addresses will be displayed as a result.

Example

$client = new SoapClient($wsdlUrl);
$request = new StdClass();
$request->mandatorId = 0;
$request->subscriberEmails = array();
array_push($request->subscriberEmails, "[email protected]");
$request->newsletterListIdsToDelete = array();
array_push($request->newsletterListIdsToDelete, 1);
try {
  var_dump($client->deleteSubscriber($request));
} catch (Exception $e) {
  echo "Error: " . $e->getMessage() . "\r\n";
}
object(stdClass)#3 (2) {
  ["deletedSubscribers"]=>
  string(27) "[email protected]"
  ["notDeletedSubscribers"]=>
  string(0) ""
}

Source code

In order to test a working example you can download the source code.

Example for deleting a subscriber

 

Anhänge (1)