A crystal client for the Pinboard API.
Add this to your application's shard.yml
:
dependencies:
pinboard:
git: https://git.cypr.io/oz/pinboard.cr.git
require "pinboard"
pinboard = Pinboard::Client.new(token: "my secret token")
posts = pinboard.recent
if posts.is_a?(Pinboard::Error)
puts posts.to_s
else
posts.each do |post|
puts "#{post.title}\n url:#{post.url}\n tags: #{post.tags.join(",")}\n"
end
end
Pinboard returns either a Pinboard::Error
, or something else. Check the tests
to be sure.
- Clone
https://git.cypr.io/oz/pinboard.cr.git
, - Create your feature branch (
git checkout -b my-new-feature
), - Commit your changes (
git commit -am 'Add some feature'
), - Create a patch (
git format-patch origin
), - Send patch to
oz@cypr.io
.
- oz Arnaud Berthomier - creator, maintainer