protected function apiCall()
    {
        $controller = $this->_registry->getController();
        $client = new Client($this->_config['httpClientOptions']);

        return $client->post('https://www.google.com/recaptcha/api/siteverify', [
            'secret' => $this->_config['secret'],
            'response' => $controller->request->getData('g-recaptcha-response'),
            'remoteip' => $controller->request->clientIp()
        ])->getBody();
    }
protected function apiCall()
    {
        $controller = $this->_registry->getController();
        $client = new Client($this->_config['httpClientOptions']);

        return $client->post('https://www.google.com/recaptcha/api/siteverify', [
            'secret' => $this->_config['secret'],
            'response' => $controller->request->getData('g-recaptcha-response'),
            'remoteip' => $controller->request->clientIp()
        ])->getBody();
    }
protected function apiCall ( ) { $ controller = $ this -> _registry -> getController ( ) ; $ client = new Client ( $ this -> _config [ 'httpClientOptions' ] ) ; return $ client -> post ( 'https://www.google.com/recaptcha/api/siteverify' , [ 'secret' => $ this -> _config [ 'secret' ] , 'response' => $ controller -> request -> getData ( 'g-recaptcha-response' ) , 'remoteip' => $ controller -> request -> clientIp ( ) ] ) -> getBody ( ) ; }
Call reCAPTCHA API to verify

@return string
@codeCoverageIgnore
Call reCAPTCHA API to verify