reddit-0.2.2.2: Library for interfacing with Reddit's API

Safe HaskellNone
LanguageHaskell2010

Reddit.Actions.Captcha

Description

Contains Captcha-related actions. Reddit sometimes requests Captchas in order to prevent spambots, and you can use this module to get more info on them. Unfortunately the library doesn't yet support answering Captchas on a widespread scale, and you have to use slightly modified variants of other functions to convince Reddit that you aren't a robot.

Synopsis

Documentation

needsCaptcha :: Monad m => RedditT m Bool Source #

Find out if the account currently logged in requires a captcha to be submitted for certain requests (like sending a private message or submitting a post).

newCaptcha :: Monad m => RedditT m CaptchaID Source #

Returns the ID of a captcha to be completed (the image for which can be found at http://reddit.com/captcha/$CAPTCHA_ID)