Copyright | (c) 2022 Edward Yang |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
This module is for internal-use and does not follow pvp versioning policies.
Synopsis
- data TwoCaptcha
- parseResponse :: (Value -> Maybe Value) -> Either HttpException (Response ByteString) -> Either TwoCaptchaError Value
- parseProxyType :: HasProxy a (Maybe Proxy) => a -> [Text]
- parseProxy :: HasProxy a (Maybe Proxy) => a -> [Text]
- defaultOptions :: Options
Documentation
data TwoCaptcha Source #
Used for picking MonadCaptcha
instances for 2Captcha.
Instances
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.