Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- defaultReCAPTCHA :: Captcha
- class Coercible Captcha a => HasReCaptchaLenses a where
- newtype ReCaptchaV2 = MkReCaptchaV2 Captcha
- reCAPTCHAV2 :: ReCaptchaV2
- invisible :: Lens' ReCaptchaV2 (Maybe Bool)
- dataS :: Lens' ReCaptchaV2 (Maybe Text)
- newtype ReCaptchaV3 = MkReCaptchaV3 Captcha
- reCAPTCHAV3 :: ReCaptchaV3
- minScore :: Lens' ReCaptchaV3 (Maybe Double)
- reCAPTCHATimeout :: TimeoutDuration
Documentation
defaultReCAPTCHA :: Captcha Source #
Default parameters for solving a recaptcha. Internal use only.
class Coercible Captcha a => HasReCaptchaLenses a where Source #
Lenses for constructing ReCaptcha options.
Nothing
enterprise :: Lens' a (Maybe Bool) Source #
Defines if your ReCaptcha is enterprise.
googleKey :: Lens' a (Maybe Text) Source #
If using ReCaptchaV2
, this is the value of k or data-sitekey found on the captcha page.
If using ReCaptchaV3
, this is the value of sitekey found on the captcha page.
domain :: Lens' a (Maybe Text) Source #
Domain used to load the captcha: google.com or recaptcha.net.
Instances
newtype ReCaptchaV2 Source #
Parameters used to solve reCAPTCHA V2.
Instances
Show ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha showsPrec :: Int -> ReCaptchaV2 -> ShowS # show :: ReCaptchaV2 -> String # showList :: [ReCaptchaV2] -> ShowS # | |
HasCookies ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha | |
HasUserAgent ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha | |
HasProxy ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha | |
HasPageURL ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha | |
HasCommonCaptchaLenses ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha apiKey :: Lens' ReCaptchaV2 (Maybe Text) Source # headerACAO :: Lens' ReCaptchaV2 (Maybe Bool) Source # | |
HasCaptchaLenses ReCaptchaV2 Source # | |
HasReCaptchaLenses ReCaptchaV2 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha |
dataS :: Lens' ReCaptchaV2 (Maybe Text) Source #
Value of the data-s parameter found on the reCAPTCHA page. Currently applicable for google services.
newtype ReCaptchaV3 Source #
Parameters used to solve reCAPTCHA V3.
Instances
Show ReCaptchaV3 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha showsPrec :: Int -> ReCaptchaV3 -> ShowS # show :: ReCaptchaV3 -> String # showList :: [ReCaptchaV3] -> ShowS # | |
HasPageURL ReCaptchaV3 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha | |
HasCommonCaptchaLenses ReCaptchaV3 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha apiKey :: Lens' ReCaptchaV3 (Maybe Text) Source # headerACAO :: Lens' ReCaptchaV3 (Maybe Bool) Source # | |
HasCaptchaLenses ReCaptchaV3 Source # | |
HasReCaptchaLenses ReCaptchaV3 Source # | |
Defined in TwoCaptcha.Internal.Types.ReCaptcha |
minScore :: Lens' ReCaptchaV3 (Maybe Double) Source #
The score needed for resolution. Currently it's almost impossible to get a token with a score higher than 0.3
reCAPTCHATimeout :: TimeoutDuration Source #
Default reCAPTCHA timeout duration (600 seconds).