示例#1
0
 public function __construct()
 {
     parent::__construct();
     // Initialise the client_id and client_secret
     $this->client_id = $this->config->get('foursquare_client_id');
     $this->client_secret = $this->config->get('foursquare_client_secret');
     $this->setQuery('client_id', $this->client_id);
     $this->setQuery('client_secret', $this->client_secret);
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->key = $this->config->get('googleplaces_api_key');
     if (empty($this->key)) {
         return $this->setError(JText::_('COM_EASYBLOG_LOCATION_PROVIDERS_PLACES_MISSING_APIKEY'));
     }
     $this->setQuery('key', $this->key);
 }