Example #1
0
 /**
  * @return bool True if successful connectivity to the API.
  */
 function test()
 {
     $this->_logger->entrance();
     $test = $this->_api->Test();
     if (false === $test && $this->_api->IsHttps()) {
         // Fallback to HTTP, since HTTPS fails.
         $this->_api->SetHttp();
         self::$_options->set_option('api_force_http', true, true);
         $test = $this->_api->Test();
     }
     return $test;
 }