Twits du Jour (Nov 11)
<1 min read
- I'm at Walmart Supercenter in Everett, WA swarmapp.com/c/27e5RikePeO #
- I'm at Novilhos Brazilian SteakHouse in Bellevue, WA swarmapp.com/c/j978VFy7NBM #
As it often happens, release a new version and almost immediately realize that it could have been easily improved on.
I've just updated Pinboard Poster to version 0.9.3, adding more ways to initialize:
val poster = PinboardPoster(Paths.get("local.properties")) // uses default PINBOARD_API_TOKEN key
val poster2 = PinboardPoster(Paths.get("my.properties"), "my.api.key")
val p = Properties()
p.setProperty("api.key", "user:TOKEN")
val poster3 = PinboardPoster(p, "api.key")
As usual documentation and source are on GitHub.
I've just released a new version of the Pinboard Poster for Kotlin/Java.
Version 0.9.2 adds the ability to set the Pinboard authentication token using a local property or environment variable.
Local Properties
# local.properties
PINBOARD_API_TOKEN=user:TOKEN
val properties = Properties().apply { FileInputStream("local.properties").use { fis -> load(fis) } }
val poster = PinboardPoster(properties)
Environment Variable
export PINBOARD_API_TOKEN="user:TOKEN"
val poster = PinboardPoster()
As usual documentation and source are on GitHub.