Updated README examples

This commit is contained in:
Erik C. Thauvin 2024-05-24 17:31:52 -07:00
parent 0480a72c30
commit 8ff15ff59f
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -21,7 +21,7 @@ A pretty complete and straightforward implementation of the [Automattic's Akisme
val akismet = Akismet(apiKey = "YOUR_API_KEY", blog = "YOUR_BLOG_URL") val akismet = Akismet(apiKey = "YOUR_API_KEY", blog = "YOUR_BLOG_URL")
val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply { val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0").apply {
referrer = "https://www.google.com" referrer = "https://www.google.com"
type = AkismetComment.TYPE_COMMENT type = CommentType.COMMENT
author = "admin" author = "admin"
authorEmail = "test@test.com" authorEmail = "test@test.com"
authorUrl = "https://www.CheckOutMyCoolSite.com" authorUrl = "https://www.CheckOutMyCoolSite.com"
@ -45,7 +45,7 @@ final Akismet akismet = new Akismet("YOUR_API_KEY", "YOUR_BLOG_URL");
final AkismetComment comment = new AkismetComment( final AkismetComment comment = new AkismetComment(
new CommentConfig.Builder("127.0.0.1", "curl/7.29.0") new CommentConfig.Builder("127.0.0.1", "curl/7.29.0")
.referrer("https://www.google.com") .referrer("https://www.google.com")
.type(Akismet.TYPE_COMMENT) .type(CommentType.COMMENT)
.author("admin") .author("admin")
.authorEmail("test@test.com") .authorEmail("test@test.com")
.authorUrl("https://www.CheckOutMyCoolSite.com") .authorUrl("https://www.CheckOutMyCoolSite.com")
@ -71,7 +71,7 @@ To use with [bld](https://rife2.com/bld), include the following dependency in yo
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY); repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
scope(compile) scope(compile)
.include(dependency("net.thauvin.erik:akismet-kotlin:1.0.0")); .include(dependency("net.thauvin.erik:akismet-kotlin:1.0.1-SNAPSHOT"));
``` ```
## Gradle ## Gradle
@ -84,7 +84,7 @@ repositories {
} }
dependencies { dependencies {
implementation("net.thauvin.erik:akismet-kotlin:1.0.0") implementation("net.thauvin.erik:akismet-kotlin:1.0.1-SNAPSHOT")
} }
``` ```