/** * Initialize API connection */ public function init() { $_config = new kyConfig($this->getApiURL(), $this->getApiKey(), $this->getSecretKey()); $_config->setIsStandardURLType(true); $_config->setDebugEnabled(true); kyConfig::set($_config); }
/** * Initialize API connection */ public function init() { $apiUrl = Mage::helper('kayako')->getKayakoApiUrl(); $apiKey = Mage::helper('kayako')->getKayakoApiKey(); $secretKey = Mage::helper('kayako')->getKayakoSecretKey(); $_config = new kyConfig($apiUrl, $apiKey, $secretKey); $_config->setIsStandardURLType(true); $_config->setDebugEnabled(true); kyConfig::set($_config); }
/** * Initializes the client. */ function initKayako() { $config = new kyConfig(BASE_URL, API_KEY, SECRET_KEY); $config->setDebugEnabled(DEBUG); kyConfig::set($config); }