listDeleteEmailContact
public static bool listDeleteEmailContact(string token, string listID, string contacts)
Delete a contact which matches the email from the given contact list.
Parameters
|
string token | A valid token for your account. To generate a token, use the login method. |
string listID | The contact list ID in which to delete contact. To get all the contact lists, use the listGet method. |
string email | The email to delete. |
Returns |
bool | Returns true in case contact were deleted. |
- <?php
- /**
- This Example shows how to authenticate a user using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
-
- /**
- Fetch the latest contact list, so we can retrieve the contact list ID.
- **/
- $contactList = $client->listGet($token, "", 1, 1, "", "");
- $listID = $contactList[0]['id'];
-
- /**
- Prepare the data to delete.
- **/
- $email = "bruce@bme.com";
-
- $active = $client->listDeleteEmailContact($token, $listID, $email);
-
- ?>