Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

tommi-lew/pinboard_rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Thin Ruby API Wrapper for Pinboard API V1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages