listDelete
public static bool listDelete(string token, string listID)
Delete an exising contact list with the given ID.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string listID | The ID of the contact list you want to delete. To get all the contact lists, use the listGet method. |
| Returns |
| bool | Returns true if the list was 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);
- $contactLists = $client->listGet($token, "", 1, 100, "", "");
-
- $listID = $contactLists[0]['id'];
-
- $del = $client->listDelete($token, $listID);
-
- ?>