listSearchContacts
public static array listSearchContacts(string token, string emailID)
Get the contact lists For the given emailID.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string emailID | EmailID for which the contact List details required |
| Returns |
| array | Returns an array with the results. |
| Return Structure |
| integer sequence | The sequence number of the record |
| string id | The ID of the contact list. To get the contacts from this list , use the listGetContacts method. |
| string listname | Name of the contact list |
- <?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);
- $emailID='info@gmail.com';
- $contactLists = $client->listSearchContacts($token, $emailID);
-
- foreach($contactLists as $rec) {
- echo $rec['sequence'] . "] List Name: " . $rec['listname'] . "(" . $rec['id'] . ")";
- echo "<br />";
- }
-
- ?>