Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype NormalCaptcha = MkNormalCaptcha Captcha
- normalCaptcha :: NormalCaptcha
- phrase :: Lens' NormalCaptcha (Maybe Bool)
- caseSensitive :: Lens' NormalCaptcha (Maybe Bool)
- format :: Lens' NormalCaptcha (Maybe Int)
- calc :: Lens' NormalCaptcha (Maybe Bool)
- minLength :: Lens' NormalCaptcha (Maybe Int)
- maxLength :: Lens' NormalCaptcha (Maybe Int)
Documentation
newtype NormalCaptcha Source #
Parameters used to solve a normal captcha.
Instances
Show NormalCaptcha Source # | |
Defined in TwoCaptcha.Internal.Types.NormalCaptcha showsPrec :: Int -> NormalCaptcha -> ShowS # show :: NormalCaptcha -> String # showList :: [NormalCaptcha] -> ShowS # | |
HasLanguage NormalCaptcha Source # | |
Defined in TwoCaptcha.Internal.Types.NormalCaptcha | |
HasLocalImage NormalCaptcha Source # | |
Defined in TwoCaptcha.Internal.Types.NormalCaptcha | |
HasCommonCaptchaLenses NormalCaptcha Source # | |
Defined in TwoCaptcha.Internal.Types.NormalCaptcha apiKey :: Lens' NormalCaptcha (Maybe Text) Source # headerACAO :: Lens' NormalCaptcha (Maybe Bool) Source # | |
HasCaptchaLenses NormalCaptcha Source # | |
normalCaptcha :: NormalCaptcha Source #
Parameters for solving a normal captcha.
Required parameters:
Optional parameters:
phrase
caseSensitive
format
calc
minLength
maxLength
language
languageCode
textInstructions
imgInstructions
headerACAO
pingback
softId
Possible method
values:
- post - defines that you're sending an image with multipart form
- base64 - defines that you're sending a base64 encoded image
Starred required parameter rules:
- file is only required if captcha = "post"
- body is only required if captcha = "base64"
phrase :: Lens' NormalCaptcha (Maybe Bool) Source #
Defines if the captcha is a phrase.
- True - Captcha contains two or more words.
- False - Captcha contains one word.
caseSensitive :: Lens' NormalCaptcha (Maybe Bool) Source #
Defines if the captcha is case sensitive.
format :: Lens' NormalCaptcha (Maybe Int) Source #
The captcha's format:
- Not specified.
- Captcha contains only numbers.
- Captcha contains only letters.
- Captcha contains only numbers OR only letters.
- Captcha contains both numbers AND letters.
calc :: Lens' NormalCaptcha (Maybe Bool) Source #
Define if the captcha requires calculation (e.g. 1 + 1 = ?).