public function __construct(array $options = array())
{
$this->populateFromArray($options);
// this has been added.
$this->headers['HTTP_CF_CONNECTING_IP'] = $_SERVER['REMOTE_ADDR'];
foreach (array('paramsGet', 'paramsPost', 'paramsPut', 'paramsDelete', 'headers') as $param) {
if (!($this->$param instanceof MailWizzApi_Params)) {
$this->$param = new MailWizzApi_Params($this->$param);
}
}
}