Delete Contact
Delete an email/contact details in a List.
Function
deleteContact()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- listId:
int
- id of the list to which the email will be removed from.
- email:
String
- email address to be removed
Return
int
:1
: success0
: failed
Exception
- Exception
Documentation
- Remove an email/contact related to the specified list.
Examples
public void deleteContact() throws java.lang.Exception {
Puresend p = new Puresend();
PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();
String username = "XXX";
String password = "XXX";
int listId = 123456;
String email = "sample@email.com";
Contact contact = ppt.deleteContact(username,
password,
listId,
email);
}
<?php
include 'puresend.php';
$p = new Puresend();
$deleteContactData = new deleteContact();
$deleteContactData->username = 'XXX';
$deleteContactData->password = 'XXX';
$deleteContactData->listId = 123456;
$deleteContactData->email = "sample@email.com";
$response = $p->deleteContact($deleteContactData);
var_dump($response);
?>