Builder

data class Builder(var userIp: String, var userAgent: String)

Provides a configuration builder.

Parameters

userIp

IP address of the comment submitter.

userAgent

User agent string of the web browser submitting the comment.

Constructors

Link copied to clipboard
constructor(userIp: String, userAgent: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Sets the mame submitted with the comment.

Link copied to clipboard

Sets the email address submitted with the comment.

Link copied to clipboard

Sets the URL submitted with comment.

Link copied to clipboard

Sets the character encoding for the form values included in comment parameters, such as UTF-8 or ISO-8859-1

Link copied to clipboard

Indicates the language(s) in use on the blog or site, in ISO 639-1 format, comma-separated.

Link copied to clipboard

Builds a new comment configuration.

Link copied to clipboard

Sets the content that was submitted.

Link copied to clipboard

Sets the UTC timestamp of the creation of the comment, in ISO 8601 format.

Link copied to clipboard

This is optional. You can set it when submitting test queries to Akismet.

Link copied to clipboard

Sets the full permanent URL of the entry the comment was submitted to.

Link copied to clipboard

Sets the UTC timestamp of the publication time for the post, page or thread on which the comment was posted.

Link copied to clipboard

If you are sending content to Akismet to be rechecked, such as a post that has been edited or old pending comments that you'd like to recheck, include this parameter with a string describing why the content is being rechecked.

Link copied to clipboard

Sets the content of the referrer header.

Link copied to clipboard

In PHP, there is an array of environmental variables called $_SERVER that contains information about the Web server itself as well as a key/value for every HTTP header sent with the request. This data is highly useful to Akismet.

Link copied to clipboard

Sets a string that describes the type of content being sent, such as:

Link copied to clipboard

Sets the user agent string of the web browser submitting the comment.

Link copied to clipboard

Sets the IP address of the comment submitter.

Link copied to clipboard

Set the user role of the user who submitted the comment. This is an optional parameter.