コード例 #1
0
ファイル: Server.php プロジェクト: ajbrown/bitnotion
 /**
  *
  * @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;
 }