0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A thin wrapper around Pinboard API V1
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 2.10.0
~> 1.4.0
~> 1.8.7

Runtime

~> 0.8.3
 Project Readme

Pinboard Ruby (pinboard-rb) Build Status

Thin Ruby API Wrapper for Pinboard API V1

Changelog

##Installation gem install pinboard_rb or add to Gemfile gem 'pinboard_rb'

##Usage I'm working towards getting all the API methods listed in http://pinboard.in/api to work.

Add following to your .rb

require 'pinboard'

Initialize

pinboard = Pinboard.new('username', 'password')

###Examples Most requests should return a hash. However, if the username and password are invalid, the gem will raise an InvalidCredentialsError.

Get all posts (https://api.pinboard.in/v1/posts/get)

pinboard.posts.req

Get all posts with parameters

pinboard.posts.params({tag: 'tag_name'}).req

Get recent posts (https://api.pinboard.in/v1/posts/recent)

pinboard.posts.recent.req

Get recent posts with parameters

pinboard.posts.recent.params({count: 1}).req

Reset method calls without doing an actual request.

pinboard.clear