/** * * @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; }