fetchTextChallenge method

Future<BitCaptchaTextChallenge> fetchTextChallenge({
  1. bool enhanced = true,
  2. bool icon = false,
})

Fetches a text click (icon false) or icon click (icon true) challenge.

Implementation

Future<BitCaptchaTextChallenge> fetchTextChallenge({bool enhanced = true, bool icon = false}) async =>
    BitCaptchaTextChallenge.fromJson(await _post('/api/v1/captcha/get',
        {'captcha_id': captchaId, 'type': icon ? 'iconclick' : 'textclick', 'enhanced': enhanced, ...outSpec()}));