/** * Set default HTTP client * * @param Zend_Http_Client $client * @return void */ public static function setDefaultHttpClient(Zend_Http_Client $client) { self::$_defaultClient = $client; }
/** * * @param string $apiKey The api key to verify * @return boolean true if the api key is valid, otherwise false */ public function verifyApiKey($apiKey) { $options = array('key' => "\"{$apiKey}\""); $response = $this->_couch->openView('apikeys', 'active', $options); return $response->count() > 0; }