listGetSignupForms
public static array listGetSignupForms(string token, integer pageNumber, integer pageSize, string orderBy)
Get the existing signup forms in your account.
Parameters
|
string token | A valid token for your account. To generate a token, use the login method. |
integer pageNumber | Fetch results from the given page number. |
integer pageSize | Number of results per page. |
string orderBy | Sort the results based on "name" or "date". |
Returns |
array | Returns an array with the results. |
Return Structure |
integer sequence | The sequence number of the record |
string id | The ID of the signup form. |
string name | Name of the signup form |
string listName | Name of the contact list in which contact would be added |
- <?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);
- $contactLists = $client->listGetSignupForms($token, 1, 100, "");
-
- foreach($contactLists as $rec) {
- echo $rec['sequence'] . "] Signup Form Name: " . $rec['name'] . "(" . $rec['id'] . ")";
- echo "\t Contact List Name:" . $rec['listName'] . ";
- echo "<br />";
- }
-
- ?>