public function getList($listId = null)
{
// set ID
$listId = empty($listId) ? $this->getListId() : $listId;
// make the call
$record = (array) $this->doCall('lists/' . $listId);
// stop here if no record was set
if (empty($record)) {
return array();
}
// reserve variable
$result = array();
// basic details
$result['id'] = $record['ListID'];
$result['title'] = $record['Title'];
$result['unsubscribe_url'] = empty($record['UnsubscribePage']) ? $this->siteURL . '/t/GenericUnsubscribe' : $record['UnsubscribePage'];
$result['confirm_optin'] = (bool) $record['ConfirmedOptIn'];
$result['confirmation_success_url'] = empty($record['ConfirmationSuccessPage']) ? $this->siteURL . '/t/Confirmed' : $record['ConfirmationSuccessPage'];
// return the record
return $result;
}