listSearchContacts
public static array listSearchContacts(string token, string emailID)
Get the contact lists For the given emailID.
Section
Contact List Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
string emailIDEmailID for which the contact List details required

Returns
arrayReturns an array with the results.

Return Structure
integer sequenceThe sequence number of the record
string idThe ID of the contact list. To get the contacts from this list , use the listGetContacts method.
string listnameName of the contact list


Examples
download example code
xmlrpc_listSearchContacts.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. $emailID='info@gmail.com';
  11. $contactLists = $client->listSearchContacts($token, $emailID);
  12.  
  13. foreach($contactLists as $rec) {
  14.     echo $rec['sequence'] . "] List Name: " . $rec['listname'] . "(" . $rec['id'] . ")";
  15.     echo "<br />";
  16. }
  17.  
  18. ?>