public interface AkismetService
Modifier and Type | Method and Description |
---|---|
boolean |
commentCheck(String ipAddress,
String userAgent,
String referrer,
String permalink,
String commentType,
String author,
String authorEmail,
String authorURL,
String commentContent,
Map other)
From the API docs, This is basically the core of everything.
|
boolean |
isVerifiedKey()
Check to see if the API key has been verified.
|
void |
setProxyAuthenticationConfiguration(String proxyUsername,
String proxyPassword)
Sets proxy authentication information.
|
void |
setProxyConfiguration(String proxyHost,
int proxyPort)
Sets proxy configuration information.
|
void |
submitHam(String ipAddress,
String userAgent,
String referrer,
String permalink,
String commentType,
String author,
String authorEmail,
String authorURL,
String commentContent,
Map other)
From the API docs, This call is intended for the marking of false positives, things that were incorrectly
marked as spam.
|
void |
submitSpam(String ipAddress,
String userAgent,
String referrer,
String permalink,
String commentType,
String author,
String authorEmail,
String authorURL,
String commentContent,
Map other)
From the API docs, This call is for submitting comments that weren't marked as spam but should have been.
|
boolean |
verifyAPIKey()
Verify your API key.
|
boolean isVerifiedKey()
true
if the API key has been verified, false
otherwisevoid setProxyConfiguration(String proxyHost, int proxyPort)
proxyHost
- Proxy hostproxyPort
- Proxy portvoid setProxyAuthenticationConfiguration(String proxyUsername, String proxyPassword)
proxyUsername
- Username to access proxyproxyPassword
- Password to access proxyboolean verifyAPIKey()
true
if the API key has been verified, false
otherwiseboolean commentCheck(String ipAddress, String userAgent, String referrer, String permalink, String commentType, String author, String authorEmail, String authorURL, String commentContent, Map other)
ipAddress
- IP address of the comment submitteruserAgent
- User agent informationreferrer
- The content of the HTTP_REFERER header should be sent herepermalink
- The permanent location of the entry the comment was submitted tocommentType
- May be blank, comment, trackback, pingback, or a made up value like "registration"author
- Submitted name with the commentauthorEmail
- Submitted email addressauthorURL
- Commenter URLcommentContent
- The content that was submittedother
- In PHP there is an array of enviroment variables called $_SERVER which 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 as how the submited content interacts with the server can be very
telling, so please include as much information as possible.true
if the comment is identified by Akismet as spam, false
otherwisevoid submitSpam(String ipAddress, String userAgent, String referrer, String permalink, String commentType, String author, String authorEmail, String authorURL, String commentContent, Map other)
ipAddress
- IP address of the comment submitteruserAgent
- User agent informationreferrer
- The content of the HTTP_REFERER header should be sent herepermalink
- The permanent location of the entry the comment was submitted tocommentType
- May be blank, comment, trackback, pingback, or a made up value like "registration"author
- Submitted name with the commentauthorEmail
- Submitted email addressauthorURL
- Commenter URLcommentContent
- The content that was submittedother
- In PHP there is an array of enviroment variables called $_SERVER which 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 as how the submited content interacts with the server can be very
telling, so please include as much information as possible.void submitHam(String ipAddress, String userAgent, String referrer, String permalink, String commentType, String author, String authorEmail, String authorURL, String commentContent, Map other)
ipAddress
- IP address of the comment submitteruserAgent
- User agent informationreferrer
- The content of the HTTP_REFERER header should be sent herepermalink
- The permanent location of the entry the comment was submitted tocommentType
- May be blank, comment, trackback, pingback, or a made up value like "registration"author
- Submitted name with the commentauthorEmail
- Submitted email addressauthorURL
- Commenter URLcommentContent
- The content that was submittedother
- In PHP there is an array of enviroment variables called $_SERVER which 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 as how the submited content interacts with the server can be very
telling, so please include as much information as possible."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"