Akismet

open class Akismet(apiKey: String)(source)

Provides access to the Akismet API.

Constructors

Link copied to clipboard
constructor(apiKey: String, blog: String)

Creates a new instance using an Akismet API key and URL registered with Akismet.

constructor(apiKey: String)

Creates a new instance using the provided Akismet API key.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The application user agent to be sent to Akismet.

Link copied to clipboard

The URL registered with Akismet.

Link copied to clipboard

The x-akismet-debug-help header from the last operation, if any.

Link copied to clipboard

The error message.

Link copied to clipboard

The HTTP status code of the last operation.

Link copied to clipboard

Set to true if Akismet has determined that the last checked comment is blatant spam, and you can safely discard it without saving it in any spam queue.

Link copied to clipboard

Set to true if the API Key has been verified.

Link copied to clipboard

The logger instance.

Link copied to clipboard

The x-akismet-pro-tip header from the last operation, if any.

Link copied to clipboard

The actual response sent by Akismet from the last operation.

Functions

Link copied to clipboard
fun checkComment(comment: AkismetComment, trueOnError: Boolean = false): Boolean

Comment Check.

Link copied to clipboard
fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean

Executes a call to an Akismet REST API method.

Link copied to clipboard
Link copied to clipboard

Submit Ham. (False Positives)

Link copied to clipboard

Submit Spam. (Missed Spam)

Link copied to clipboard

Key Verification.