HttpBridgePostRequestMethod

Implements \ReCaptcha\RequestMethod

Bridges the Joomla! HTTP API to the Google Recaptcha RequestMethod interface for a POST request.

final
since

3.9.0

Methods

__construct

Class constructor.

__construct(\Joomla\CMS\Http\Http|null $http = null) 
since

3.9.0

Arguments

$http

\Joomla\CMS\Http\Http|nullThe HTTP adapter

submit

Submit the request with the specified parameters.

submit(\ReCaptcha\RequestParameters $params) : string
since

3.9.0

Arguments

$params

\ReCaptcha\RequestParametersRequest parameters

Response

stringBody of the reCAPTCHA response

Constants

SITE_VERIFY_URL

URL to which requests are sent.

Value 'https://www.google.com/recaptcha/api/siteverify'
since

3.9.0

Type(s)

string

Properties

http

The HTTP adapter

since

3.9.0

Type(s)

\Joomla\CMS\Http\Http