public static array segmentGetDetail(string token, string segmentID)
Get all the details for given segment ID.
Contact List Related Methods

string tokenA valid token for your account. To generate a token, use the login method.
string segmentIDThe segment ID to get the details for. To get all the segment, use the segmentGetDetail method.

arrayReturns an array with the details.

Return Structure
integer sequenceThe sequence number of the record
string idThe ID of the segment
integer contactCountnumber of contacts in the segment
string segmentnameThe name of the segment
integer listIDThe ID of the contact list on which the segment is created
string listNameThe name of the contact list on which the segment is created
string createdDateThe date on which the segment was created
string modifiedDateThe date on which the segment was last updated

download example code

  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. /**
  11. Fetch the latest email, so we can retrieve the email ID.
  12. **/
  13. $segmentList = $client->segmentGet($token, "", 1, 1, "");
  14. $segmentID = $segmentList[0]['id'];
  16. $segmentData = $client->segmentGetDetail($token, $segmentID);
  17. print_r($segmentData);
  18. ?>