This commit is contained in:
Erik C. Thauvin 2022-04-28 22:03:37 -07:00
parent 89c0acdf42
commit 453bb95617
3 changed files with 24 additions and 26 deletions

View file

@ -7,12 +7,12 @@ import java.util.Date;
public class AkismetSample {
public static void main(String[] args) {
final Akismet akismet = new Akismet("YOUR_API_KEY", "http://yourblogdomainname.com/blog/");
final Akismet akismet = new Akismet("YOUR_API_KEY", "https://yourblogdomainname.com/blog/");
final AkismetComment comment = new AkismetComment("127.0.0.1", "curl/7.29.0");
comment.setTest(true);
comment.setReferrer("http://www.google.com");
comment.setReferrer("https://www.google.com");
comment.setPermalink(akismet.getBlog() + "post=1");
comment.setType(AkismetComment.TYPE_COMMENT);
comment.setAuthor("admin");