autoresponderDelete
public static bool autoresponderDelete(string token, string autoresponderID)
Delete the Autoresponder campaign for given ID. Returns true if the Autoresponder was deleted.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string autoresponderID | The autoresponderID ID to delete. To get all the Autoresponder campaigns, use the autoresponderGetList method. |
| Returns |
| bool | Returns true if the Autoresponder campaign 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);
-
- /**
- Fetch the latest email, so we can retrieve the email ID.
- **/
- $AutoresponderList = $client->autoresponderGetList($token,1,10,'','','');
- $autoresponderID = $AutoresponderList[0]['id'];
-
- $deleted = $client->autoresponderDelete($token, $autoresponderID);
- ?>