Cleanup.
This commit is contained in:
parent
8702c6511d
commit
b8df369f0a
3 changed files with 3 additions and 7 deletions
|
@ -8,8 +8,7 @@ import java.util.Date;
|
||||||
public class AkismetSample {
|
public class AkismetSample {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final Akismet akismet = new Akismet("YOUR_API_KEY", "YOUR_BLOG_URL");
|
final Akismet akismet = new Akismet("YOUR_API_KEY", "YOUR_BLOG_URL");
|
||||||
final AkismetComment comment = new AkismetComment("127.0.0.1",
|
final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0");
|
||||||
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6");
|
|
||||||
|
|
||||||
comment.setTest(true);
|
comment.setTest(true);
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,7 @@ import kotlin.system.exitProcess
|
||||||
|
|
||||||
fun main() {
|
fun main() {
|
||||||
val akismet = Akismet("YOUR_API_KEY", "YOUR_BLOG_URL")
|
val akismet = Akismet("YOUR_API_KEY", "YOUR_BLOG_URL")
|
||||||
val comment = AkismetComment(
|
val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0")
|
||||||
userIp = "127.0.0.1",
|
|
||||||
userAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6"
|
|
||||||
)
|
|
||||||
|
|
||||||
comment.isTest = true
|
comment.isTest = true
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ import java.util.logging.Level
|
||||||
import java.util.logging.Logger
|
import java.util.logging.Logger
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A small Kotlin/Java library for accessing the Akismet service.
|
* A Kotlin/Java library for accessing the Akismet service.
|
||||||
*
|
*
|
||||||
* @constructor Create new instance using the provided [Akismet](https://www.askimet.com/) API key.
|
* @constructor Create new instance using the provided [Akismet](https://www.askimet.com/) API key.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue