Pinboard Poster 0.9.2
<1 min read
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.