autoresponderDetailDelete
public static bool autoresponderDetailDelete(string token, string autoresponderID , string autoresponderDetailID)
Delete the Autoresponder email for given Autoresponder ID and Autoresponder email ID. Returns true if the delete was sucessful.
| 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. |
| string autoresponderDetailID | The autoresponder email ID to delete. To get all the Autoresponder emails, use the autoresponderGetDetail method.The output of this method returns a strcuture which has has an array of autoresponder email structure |
| Returns |
| bool | Returns true if the Autoresponder email 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'];
- $retval = $client->autoresponderGetDetail($token,$autoresponderID);
- $autoresponderDetailID = $retval['emails'][0]['autoresponderDetailID'];
-
- $deleted = $client->autoresponderDetailDelete($token,$autoresponderID,$autoresponderDetailID);
- ?>