autoresponderGetEmailDetail
public static array autoresponderGetEmailDetail(string token, string autoresponderID , string autoresponderDetailID)
Get all the details for given Autoresponder ID & Autoresponder Email ID .
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string autoresponderID | The autoresponderID ID . To get all the Autoresponder campaigns, use the autoresponderGetList method. |
| string autoresponderDetailID | The autoresponder email ID . To get all the Autoresponder emails, use the autoresponderGetDetail method.The output of this method returns a structure which has has an array of autoresponder email structure |
| Returns |
| array | Returns an array with the details. |
| Return Structure |
| integer sequence | The sequence number of the record |
| string id | The ID of the email campaign. |
| string emailName | Name of the email campaign |
| string fromName | Name displayed as "from" in your contact's in-box |
| string fromEmail | The from email that appears in the recipients inbox |
| string replyEmail | Replies are forwarded to this address |
| string subject | The subject line of the email |
| string templateContent | The HTML content of the email |
| string templateText | The Text version of the email |
| string us_address | The Address line in case of US-based sender |
| string us_city | The City in case of US-based sender |
| string us_state | The State in case of US-based sender |
| string us_zip | The Zip Code in case of US-based sender |
| string intl_address | The Address line in case of Outside US-based sender |
| string permissionReminderMessage | The Permission reminder which appears on top of the email. |
| string googleAnalyticsCampaign | The Google Analytics campaign name. |
| bool webpageVersion | Returns true if a link to view a web version of the email has been set |
| string createdDate | The date on which the list was created |
| string modifiedDate | The date on which the list was last updated |
- <?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'];
-
- $data = $client->autoresponderGetEmailDetail($token,$autoresponderID,$autoresponderDetailID);
- print_r($data);
- ?>