captcha-2captcha-0.1.0.0: A package for integrating a variety of captcha solving services.
Copyright(c) 2022 Edward Yang
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Captcha.TwoCaptcha.Internal

Description

This module is for internal-use and does not follow pvp versioning policies.

Synopsis

Documentation

data TwoCaptcha Source #

Used for picking MonadCaptcha instances for 2Captcha.

Instances

Instances details
CaptchaResponse TwoCaptcha ctx Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal

(HasCaptchaEnv r, MonadReader r m, MonadUnliftIO m) => MonadCaptcha TwoCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal

Associated Types

type CaptchaError TwoCaptcha r m #

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha HCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.HCaptcha

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha ReCaptchaV3 r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.ReCaptchaV3

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha ReCaptchaV2 r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.ReCaptchaV2

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha FunCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.FunCaptcha

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha TextCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.Text

(HasCaptchaEnv r, MonadReader r m, MonadIO m) => CaptchaRequest TwoCaptcha ImageCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal.Types.Image

type CaptchaError TwoCaptcha r m Source # 
Instance details

Defined in Captcha.TwoCaptcha.Internal

parseResponse :: (Value -> Maybe Value) -> Either HttpException (Response ByteString) -> Either TwoCaptchaError Value Source #

Parse the http response into the captcha answer, handling any errors found.

parseProxyType :: HasProxy a (Maybe Proxy) => a -> [Text] Source #

Parse the proxy type to its textual representation.

parseProxy :: HasProxy a (Maybe Proxy) => a -> [Text] Source #

Parse the proxy into the format: username:password@address:port

defaultOptions :: Options Source #

Default option parameters when making 2Captcha requests.