Interface to the Mollom API
- getServerList :: MollomConn -> IO [String]
- checkContent :: MollomConn -> [(String, String)] -> IO [(String, MollomValue)]
- sendFeedback :: MollomConn -> String -> String -> IO Bool
- getImageCaptcha :: MollomConn -> Maybe String -> Maybe String -> IO [(String, MollomValue)]
- getAudioCaptcha :: MollomConn -> Maybe String -> Maybe String -> IO [(String, MollomValue)]
- checkCaptcha :: MollomConn -> String -> String -> IO Bool
- getStatistics :: MollomConn -> String -> IO Int
- verifyKey :: MollomConn -> IO Bool
- detectLanguage :: MollomConn -> String -> IO [[(String, MollomValue)]]
- addBlacklistText :: MollomConn -> String -> String -> String -> IO Bool
- removeBlacklistText :: MollomConn -> String -> IO Bool
- listBlacklistText :: MollomConn -> IO ()
- addBlacklistURL :: MollomConn -> String -> IO Bool
- removeBlacklistURL :: MollomConn -> String -> IO Bool
- listBlacklistURL :: MollomConn -> IO [[(String, MollomValue)]]
- data MollomConn = MollomConn {
- mcPublicKey :: String
- mcPrivateKey :: String
- mcSessionID :: String
- mcServerList :: [String]
Documentation
:: MollomConn | connection to the Mollom service |
-> IO [String] | list of servers that can be used |
request a list of Mollom servers that can handle a site's calls.
:: MollomConn | connection to the Mollom service |
-> [(String, String)] | data |
-> IO [(String, MollomValue)] | contains spam decision and session ID |
asks Mollom whether the specified message is legitimate.
:: MollomConn | connection to the Mollom service |
-> String | session ID |
-> String | feedback: spam, profanity, low-quality or unwanted |
-> IO Bool | always returns True |
tells Mollom that the specifieed message was spam or otherwise abusive.
:: MollomConn | connection to the Mollom service |
-> Maybe String | session ID |
-> Maybe String | author IP address |
-> IO [(String, MollomValue)] | session ID and CAPTCHA url |
requests Mollom to generate a image CAPTCHA.
:: MollomConn | connection to the Mollom service |
-> Maybe String | session ID |
-> Maybe String | author IP address |
-> IO [(String, MollomValue)] | session ID and CAPTCHA url |
requests Mollom to generate an audio CAPTCHA
:: MollomConn | connection to the Mollom service |
-> String | session ID associated with the CAPTCHA |
-> String | solution to the CAPTCHA |
-> IO Bool | True if correct, False if wrong |
requests Mollom to verify the result of a CAPTCHA.
:: MollomConn | connection to the Mollom service |
-> 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. |
-> IO Int | Value of requested statistic |
retrieves usage statistics from Mollom.
:: MollomConn | connection to the Mollom service |
-> IO Bool | Always returns True |
return a status value.
:: MollomConn | connection to the Mollom service |
-> String | text to analyse -> IO [[DetectLanguageResponseStruct]] -- ^list of (language, confidence) tuples |
-> IO [[(String, MollomValue)]] | list of (language, confidence) tuples |
analyze text and return its most likely language code.
:: MollomConn | connection to the Mollom service |
-> String | text to blacklist |
-> String | |
-> String | reason: spam, profanity, low-quality, or unwanted |
-> IO Bool | always returns True |
add text to your site's custom text blacklist.
:: MollomConn | connection to the Mollom service |
-> String | text to blacklist |
-> IO Bool | always returns True |
remove text from your site's custom text blacklist.
:: MollomConn | connection to the Mollom service -> IO [[(String, MollomValue)]] -- ^List of the current blacklisted URLs for the website corresponding to the public and private keypair |
-> IO () | 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.
:: MollomConn | connection to the Mollom service |
-> String | URL to be added to custom URL blacklist for the website identified by the public and private keypair |
-> IO Bool | always returns True |
add a URL to your site's custom URL blacklist.
:: MollomConn | connection to the Mollom service |
-> String | URL to be removed from the custom URL blacklist for the website identified by the public and private keypair |
-> IO Bool | always returns True |
remove a URL from your site's custom URL blacklist.
:: MollomConn | connection to the Mollom service |
-> IO [[(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.
data MollomConn Source
Describes connection with the Mollom server
MollomConn | |
|