Twits du Jour (Mar 22)
<1 min read
- PSA: Uninstall #Android System WebView to fix crashing apps thauv.in/3fdg0ga #
Twits du Jour (Mar 21)
<1 min read
- Pinboard-Poster 1.0.3 has been released. #github #kotlin github.com/ethauvin/pinbo… #
- Bitly-Shorten 0.9.3 has been released. #github #kotlin github.com/ethauvin/bitly… #
Pinboard-Poster 1.0.3
<1 min read
I've just released version 1.0.3 of Pinboard Poster, a small Kotlin/Java library for posting to Pinboard.
No new functionality, just better logging and error trapping.
Kotlin
val poster = PinboardPoster("user:TOKEN")
poster.addPin("http://www.example.com/foo", "This is a test")
poster.deletePin("http:///www.example.com/bar")
Java
final PinboardPoster poster = new PinBboardPoster("user:TOKEN");
poster.addPin("http://www.example.com/foo", "This is a test");
poster.deletePin("http:///www.example.com/bar");
As usual documentation and source are on GitHub.
Bitly-Shorten 0.9.3
<1 min read
I've just released an update to the Bitly Shortener library, a simple Kotlin/Java implementation of the URL shortening (bitlinks) abilities of the Bitly v4 API.
This version implements a way to retrieve the last API call response:
val bitlinks = Bitlinks(apikey)
val shortUrl = bitlinks.shorten(longUrl)
val response = bitlinks.lastCallResponse
if (response.isSuccessful) { println(response.body) }
As usual the source code, documentation and binaries are on GitHub.
