<?php

ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once 'CMBase.php';
//-----------------------------INPUT PARAMS---------------------------------------
$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$listid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
//-------------------------------------------------------------------------------
$cm = new CampaignMonitor($apikey);
//Optional statement to include debugging information in the result
$cm->debug_level = 1;
//This is the actual call to the method
$result = $cm->listGetDetail($listid);
echo '<br><br>';
print_r($result);
 /**
  * Get information about a specific list
  *
  * @param string $listid 
  * @return void
  * @author Dan Chadwick
  */
 public function get_list_detail($listid = null)
 {
     $listid = $listid == null ? $this->list_id : $listid;
     $cm = new CampaignMonitor($this->api_key);
     // Optional statement to include debugging information in the result
     $cm->debug_level = 1;
     // This is the actual call to the method
     $result = $cm->listGetDetail($listid);
     return $result;
     if ($result['Result']['Code'] == 0) {
         return true;
     } else {
         Kohana::log('error', 'Campaign Monitor Error : ' . $result['Result']['Message']);
         return false;
     }
 }