autoresponderGetList
public static array autoresponderGetList(string token, integer pageNumber, integer pageSize, string orderBy , string filter , string sortOrder)
Get the list of Autoresponders using the filter and paging limits, order by the name or date of the Autoresponder.
Section
Email Campaign Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
integer pageNumberFetch results from the given page number.
integer pageSizeNumber of results per page.
string orderBySort the results based on "name" or "date".
string filterShow autoresponders where the autoresponder name starts with the filter
string sortOrderSort the results in the "asc"ending or "desc"ending order.

Returns
arrayReturns an array with the results.

Return Structure
integer sequenceThe sequence number of the record
string idThe ID of the Autoresponder campaign. To get the details of this campaign, use the autoresponderGetDetail method.
string autoresponderNameName of the Autoresponder campaign
string totalEmailsNo of levels of the Autoresponder campaign
string statusStatus of the Autoresponder campaign, 1 for active for 0 for inactive
string modifiedDateThe date on which the Autoresponder was last updated


Examples
download example code
xmlrpc_autoresponderGetList.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10. $retval = $client->autoresponderGetList($token, 1, 10, '', '', '');
  11.  
  12. foreach($retval as $rec) {
  13.     echo $rec['sequence'] . "] Autoresponder Name: " . $rec['autoresponderName'] . "(" . $rec['id'] . ")";
  14.     echo "\t Autoresponder levels:" . $rec['totalEmails'];
  15.     echo "\t status: " . $rec['status'];
  16.     echo "\t Updated Date: " . $rec['modifiedDate'];
  17.     echo "<br />";
  18. }
  19.  
  20. ?>