public function __construct($apiKey = null) { if (empty($apiKey)) { $apiKey = CTCT_APIKEY; } parent::__construct($apiKey); // Use our own REST client. $this->setRestClient(new KWSRestClient()); $this->setUrls(); $this->setHooks(); self::$instance =& $this; }