Authors: bunopnu.
Simplifies the process of verifying CAPTCHA responses.
Erlang library that provides easy-to-use functions for interacting with Cloudflare Turnstile, reCAPTCHA and hCaptcha.api_request_data() = {Secret::binary(), Response::binary()} | {Secret::binary(), Response::binary(), IpAddress::binary()}
Representing the data required for making a request.
captcha_services() = turnstile | recaptcha | hcaptcha
Representing the available CAPTCHA services.
request_response() = {ok, map()} | {error, term()}
Representing the response from a CAPTCHA service request.
request/2 | Sends a request to the specified CAPTCHA service. |
request/3 | Sends a request to the specified CAPTCHA service with HTTP options. |
start/0 | Starts the application along with its dependent applications. |
verify/2 | Verifies the CAPTCHA response from the specified service. |
request(Service, Data) -> Result
Sends a request to the specified CAPTCHA service.
request(Service, Data, Opts) -> Result
Sends a request to the specified CAPTCHA service with HTTP options.
The function behaviour remains the same as request/2
,
but it additionally allows you to pass custom HTTP options in the
Opts
parameter.
start() -> ok | {error, term()}
Starts the application along with its dependent applications.
verify(Service, Data) -> Result
Verifies the CAPTCHA response from the specified service.
Generated by EDoc