Property | Type | Description | |
---|---|---|---|
m_key | String |
Method | Description | |
---|---|---|
AkismetValidator ( String key ) : System |
Initialize class members based on the input parameters
|
|
IsSpam ( AkismetComment comment ) : System.Boolean |
Check if the input comment is valid or not.
|
|
IsSpam ( string ApiKey, string domain, |
||
SubmitHam ( AkismetComment comment ) : void |
This call is intended for the marking of false positives, things that were incorrectly marked as spam.
|
|
SubmitSpam ( AkismetComment comment ) : void |
This call is for submitting comments that weren't marked as spam but should've been.
|
|
VerifyKey ( String domain ) : System.Boolean |
Check if the validator's key is valid or not.
|
Method | Description | |
---|---|---|
ExtractResult ( String content ) : System.Boolean |
Check the input data for valid content: "valid" string or "true" string.
|
|
PostRequest ( String url, |
Post parameters to the input url and return the response.
|
|
PreparePars ( AkismetComment comment ) : |
Prepare request parameters based on the input comment.
|
|
PreparePars ( String key, String domain ) : |
Prepare request parameters based on the input parameters.
|
public AkismetValidator ( String key ) : System | ||
key | String | The input Akismet key. |
return | System |
protected ExtractResult ( String content ) : System.Boolean | ||
content | String | The input content. |
return | System.Boolean |
public IsSpam ( AkismetComment comment ) : System.Boolean | ||
comment | AkismetComment | The input comment to be checked. |
return | System.Boolean |
public static IsSpam ( string ApiKey, string domain, |
||
ApiKey | string | |
domain | string | |
comment | ||
return | bool |
protected PostRequest ( String url, |
||
url | String | The input url (absolute). |
pars | The input parameters to send. | |
return | String |
protected PreparePars ( AkismetComment comment ) : |
||
comment | AkismetComment | The input comment. |
return |
protected PreparePars ( String key, String domain ) : |
||
key | String | The input key. |
domain | String | The input domain. |
return |
public SubmitHam ( AkismetComment comment ) : void | ||
comment | AkismetComment | The input comment to be sent as ham. |
return | void |
public SubmitSpam ( AkismetComment comment ) : void | ||
comment | AkismetComment | The input comment to be sent as spam. |
return | void |
public VerifyKey ( String domain ) : System.Boolean | ||
domain | String | |
return | System.Boolean |