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