Bitly-Shorten, Isgd-Shorten and Akismet-Kotlin

<1 min read

I've released updates to a few more Kotlin libraries:

  • Akismet 1.0.0
    • Client library for accessing the Automattic Kismet (Akismet) spam comments filtering service.

      val akismet = Akismet(apiKey = "YOUR_API_KEY", blog = "YOUR_BLOG_URL")
      val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0")
      with(comment) {
          referrer = "https://www.google.com"
          type = AkismetComment.TYPE_COMMENT
          author = "admin"
          authorEmail = "[email protected]"
          authorUrl = "https://www.CheckOutMyCoolSite.com"
          dateGmt = Akismet.dateToGmt(Date())
          content = "It means a lot that you would take the time to review our software."
      }
      val isSpam = akismet.checkComment(comment)
  • Bitly Shorten 1.0.0
    • A simple implementation of the Bitly link shortening (Bitlinks) API v4.

      bitly.bitlinks().shorten("https://erik.thauvin.net/blog")
      bitly.bitlinks().expand("https://bit.ly/380ojFd")
  • is.gd Shorten 1.0.0
    • A simple implementation of the is.gd URL shortening and lookup APIs.

      Isgd.shorten("https://www.example.com/") // returns https://is.gd/Pt2sET
      Isgd.lookup("https://is.gd/Pt2sET") // returns https://www.example.com