listGetSignupForms
public static array listGetSignupForms(string token, integer pageNumber, integer pageSize, string orderBy)
Get the existing signup forms in your account.
Section
Signup Form 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".

Returns
arrayReturns an array with the results.

Return Structure
integer sequenceThe sequence number of the record
string idThe ID of the signup form.
string nameName of the signup form
string listNameName of the contact list in which contact would be added


Examples
download example code
xmlrpc_listGetSignupForms.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. $contactLists = $client->listGetSignupForms($token, 1, 100, "");
  11.  
  12. foreach($contactLists as $rec) {
  13.     echo $rec['sequence'] . "] Signup Form Name: " . $rec['name'] . "(" . $rec['id'] . ")";
  14.     echo "\t Contact List Name:" . $rec['listName'] . ";
  15.     echo "<br />";
  16. }
  17.  
  18. ?>