/** * Detect API Key * * See if the user has provided an API key * * @return boolean */ protected function _detect_api_key() { log_message('debug', 'debug DETECTING API KEY'); $ret = FALSE; $ret = parent::_detect_api_key(); if ($ret === FALSE) { $this->rest->key = $this->input->ip_address(); } return true; }