/** * 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 client configuration object. */ public function init() { $configObj = JModuleHelper::getModule('mod_kayako')->params; $configValue = json_decode($configObj, 1); $config = $config = new kyConfig($configValue['apiurl'], $configValue['apikey'], $configValue['secretkey']); $config->setIsStandardURLType(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); }