Esempio n. 1
0
 /**
  * The constructor
  *
  * @param   string  $key     - the mailchimp api key
  * @param   string  $secure  - use secure connection
  */
 public function __construct($key = '', $secure = '')
 {
     if (!$key) {
         $key = JComponentHelper::getParams('com_cmc')->get('api_key', '');
     }
     if (!$secure) {
         $config = JFactory::getConfig();
         $secure = $config->get('force_ssl', 0);
     }
     parent::MCAPI($key, $secure);
 }