◆ __construct()
Create a configured instance to use the reCAPTCHA service.
- Paramètres
-
string | $secret | shared secret between site and reCAPTCHA server. |
RequestMethod | $requestMethod | method used to send the request. Defaults to POST. |
◆ verify()
verify |
( |
|
$response, |
|
|
|
$remoteIp = null |
|
) |
| |
Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.
- Paramètres
-
string | $response | The value of 'g-recaptcha-response' in the submitted form. |
string | $remoteIp | The end user's IP address. |
- Renvoie
- Response Response from the service.
Références $params, et Response\fromJson().
◆ $requestMethod
◆ $secret
◆ VERSION
const VERSION = 'php_1.1.2' |
Version of this client library. string
La documentation de cette classe a été générée à partir du fichier suivant :