Recaptcha.API.Response (recaptcha_v3 v0.1.0)

View Source

Recaptcha API response struct.

Summary

Types

t()

The structure of the API Response.

Functions

Create a new response struct.

Types

t()

@type t() :: %Recaptcha.API.Response{
  action: String.t(),
  challenge_ts: String.t(),
  "error-codes": [String.t()],
  hostname: String.t(),
  score: number(),
  success: boolean()
}

The structure of the API Response.

Functions

new(data)

@spec new(map()) :: t()

Create a new response struct.