Ejemplo n.º 1
0
 /**
  * Initialize API connection
  */
 public function init()
 {
     $_config = new kyConfig($this->getApiURL(), $this->getApiKey(), $this->getSecretKey());
     $_config->setIsStandardURLType(true);
     $_config->setDebugEnabled(true);
     kyConfig::set($_config);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
/**
 * Initializes the client.
 */
function initKayako()
{
    $config = new kyConfig(BASE_URL, API_KEY, SECRET_KEY);
    $config->setDebugEnabled(DEBUG);
    kyConfig::set($config);
}