Project

restbooks

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Restbooks is a client library for feedbooks.com api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme
WARNING !
I will not guaranty API consistency until 0.5 release!

Main Features :
- API mapping for "books", "authors", "lists" and "categories" using atom format
- ETag support (the same instance fetch only ones)

Roadmap :
- Atom pub
- User Books API

INSTALL :

gem install tchak-restbooks

DOC :
http://restbooks.tchak.net

HOWTO :

require 'rubygems'
require 'restbooks'

client = RestBooks::Client.new( :log => 'stdout' )

m_books = client.books.all
m_authors = client.authors.all( { :letter => 'A' } )
m_authors = client.authors.all( { :page => 2 } )

m_author = client.authors.top.first
m_book = client.authors.books( m_author ).first
p m_book.title
p m_book.description

m_comments = client.books.comments( m_book )
m_comments.each do |comment|
  p comment.title
  p comment.body
end