2captcha-0.1.0.0: Haskell package for easy integration with the 2captcha API.
Safe HaskellNone
LanguageHaskell2010

TwoCaptcha.Internal.Types.NormalCaptcha

Synopsis

Documentation

normalCaptcha :: NormalCaptcha Source #

Parameters for solving a normal captcha.

Required parameters:

Optional parameters:

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:

  1. Not specified.
  2. Captcha contains only numbers.
  3. Captcha contains only letters.
  4. Captcha contains only numbers OR only letters.
  5. Captcha contains both numbers AND letters.

calc :: Lens' NormalCaptcha (Maybe Bool) Source #

Define if the captcha requires calculation (e.g. 1 + 1 = ?).

minLength :: Lens' NormalCaptcha (Maybe Int) Source #

The minimum number of symbols in the captcha (up to 20).

maxLength :: Lens' NormalCaptcha (Maybe Int) Source #

The maximum numbers of symbols in the captcha (up to 20).