public function validateapiAction()
    {
        $request = $this->getRequest();

        $configMap = Mage::getModel('radial_core/config');
        $hostname = $this->_validatorHelper->getParamOrFallbackValue(
            $request,
            self::HOSTNAME_PARAM,
            self::HOSTNAME_USE_DEFAULT_PARAM,
            $configMap->getPathForKey('api_hostname')
        );
        $storeId = $this->_validatorHelper->getParamOrFallbackValue(
            $request,
            self::STORE_ID_PARAM,
            self::STORE_ID_USE_DEFAULT_PARAM,
            $configMap->getPathForKey('store_id')
        );
        $apiKey = $this->_validatorHelper->getEncryptedParamOrFallbackValue(
            $request,
            self::API_KEY_PARAM,
            self::API_KEY_USE_DEFAULT_PARAM,
            Mage::getSingleton('radial_core/config')->getPathForKey('api_key')
        );

        $this->getResponse()->setHeader('Content-Type', 'text/json')
            ->setBody(json_encode(Mage::helper('radial_core/validator')->testApiConnection($storeId, $apiKey, $hostname)));
        return $this;
    }