Recaptcha.Http (nlwstein_recaptcha v4.0.0) View Source
Responsible for managing HTTP requests to the reCAPTCHA API.
Link to this section Summary
Functions
Sends an HTTP request to the reCAPTCHA version 2.0 API.
Link to this section Functions
Specs
Sends an HTTP request to the reCAPTCHA version 2.0 API.
See the docs for more details on the API response.
Options
:timeout
- the timeout for the request (defaults to 5000ms)
Examples
{:ok, %{
"success" => success,
"challenge_ts" => ts,
"hostname" => host,
"error-codes" => errors
}} = Recaptcha.Http.request_verification(%{
secret: "secret",
response: "response",
remote_ip: "remote_ip"
})