Post
in package
implements
RequestMethod
Sends POST requests to the reCAPTCHA service.
Table of Contents
Interfaces
- RequestMethod
- Method used to send the request to the service.
Properties
- $siteVerifyUrl : string
- URL for reCAPTCHA siteverify API
Methods
- __construct() : mixed
- Only needed if you want to override the defaults
- submit() : string
- Submit the POST request with the specified parameters.
Properties
$siteVerifyUrl
URL for reCAPTCHA siteverify API
private
string
$siteVerifyUrl
Methods
__construct()
Only needed if you want to override the defaults
public
__construct([string $siteVerifyUrl = null ]) : mixed
Parameters
- $siteVerifyUrl : string = null
-
URL for reCAPTCHA siteverify API
submit()
Submit the POST request with the specified parameters.
public
submit(RequestParameters $params) : string
Parameters
- $params : RequestParameters
-
Request parameters
Return values
string —Body of the reCAPTCHA response