Interface to the Mollom API
- getServerList :: MollomMonad [String]
- checkContent :: [(String, String)] -> MollomMonad [(String, MollomValue)]
- sendFeedback :: String -> MollomMonad Bool
- getImageCaptcha :: Maybe String -> MollomMonad [(String, MollomValue)]
- getAudioCaptcha :: Maybe String -> MollomMonad [(String, MollomValue)]
- checkCaptcha :: String -> MollomMonad Bool
- getStatistics :: String -> MollomMonad Int
- verifyKey :: MollomMonad Bool
- detectLanguage :: String -> MollomMonad [[(String, MollomValue)]]
- addBlacklistText :: String -> String -> String -> MollomMonad Bool
- removeBlacklistText :: String -> MollomMonad Bool
- listBlacklistText :: MollomMonad [[(String, MollomValue)]]
- addBlacklistURL :: String -> MollomMonad Bool
- removeBlacklistURL :: String -> MollomMonad Bool
- listBlacklistURL :: MollomMonad [[(String, MollomValue)]]
- data MollomConfiguration = MollomConfiguration {}
- data MollomValue
Documentation
getServerList :: MollomMonad [String]Source
request a list of Mollom servers that can handle a site's calls.
:: [(String, String)] | data |
-> MollomMonad [(String, MollomValue)] | contains spam decision and session ID |
asks Mollom whether the specified message is legitimate.
:: String | feedback: spam, profanity, low-quality or unwanted |
-> MollomMonad Bool | always returns true |
tells Mollom that the specified message was spam or otherwise abusive.
:: Maybe String | author IP address |
-> MollomMonad [(String, MollomValue)] | session ID and CAPTCHA url |
requests Mollom to generate a image CAPTCHA.
:: Maybe String | author IP address |
-> MollomMonad [(String, MollomValue)] |
requests Mollom to generate an audio CAPTCHA
:: String | solution to the CAPTCHA |
-> MollomMonad Bool |
requests Mollom to verify the result of a CAPTCHA.
:: String | type of statistics demanded total_days Number of days Mollom has been used. total_accepted Total accepted posts. total_rejected Total rejected spam posts. yesterday_accepted Number of posts accepted yesterday. yesterday_rejected Number of spam posts blocked yesterday. today_accepted Number of posts accepted today. today_rejected Number of spam posts rejected today. |
-> MollomMonad Int | Value of requested statistic |
retrieves usage statistics from Mollom.
:: String | text to analyse |
-> MollomMonad [[(String, MollomValue)]] | list of (language, confidence) tuples |
analyze text and return its most likely language code.
:: String | text to blacklist |
-> String | |
-> String | reason: spam, profanity, low-quality, or unwanted |
-> MollomMonad Bool | always returns True |
add text to your site's custom text blacklist.
:: String | text to blacklist |
-> MollomMonad Bool | always returns True |
remove text from your site's custom text blacklist.
:: MollomMonad [[(String, MollomValue)]] | List of the current blacklisted URLs for the website corresponding to the public and private keypair |
return the contents of your site's custom text blacklist.
:: String | URL to be added to custom URL blacklist for the website identified by the public and private keypair |
-> MollomMonad Bool | always returns True |
add a URL to your site's custom URL blacklist.
:: String | URL to be removed from the custom URL blacklist for the website identified by the public and private keypair |
-> MollomMonad Bool | always returns True |
remove a URL from your site's custom URL blacklist.
:: MollomMonad [[(String, MollomValue)]] | List of the current blacklisted URLs for the website corresponding to the public and private keypair |
return the contents of your site's custom URL blacklist.