Bitly-Shorten, Isgd-Shorten, JokeAPI and Pinboard Poster

<1 min read

I've released updates to a few of my Kotlin libraries:

  • JokeAPI 1.0.0
    • A simple library to retrieve jokes from Sv443's JokeAPI.

      import net.thauvin.erik.jokeapi.joke
      
      val joke = joke()
      val safe = joke(safe = true)
      val pun = joke(categories = setOf(Category.PUN))
  • Pinboard Poster 1.2.0
    • A small library for posting to Pinboard.

      val poster = PinboardPoster("user:TOKEN")
      
      poster.addPin("https://example.com/foo", "This is a test")
      poster.addPin("https://example.com", "This is a test", tags = arrayOf("foo", "bar"))
      poster.deletePin("https://example.com/bar")
  • Bitly Shorten 2.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.1.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