Module: RBook::TitlePage
- Defined in:
- lib/rbook/titlepage.rb,
lib/rbook/titlepage/client.rb,
lib/rbook/titlepage/wwwclient.rb,
lib/rbook/titlepage/titlepage_utils.rb,
lib/rbook/titlepage/titlepage_driver.rb
Overview
a convenience module for accessing the SOAP API for www.titlepage.com. Uses boilerplate code generated by soap4r.
You should be aware of any limits of query volume imposed by the provider - currently a maximum of 30 queries per minute is permitted.
All examples require the following two lines at the top of your file:
require 'rubygems'
require 'rbook/titlepage'
Basic usage:
tp = RBook::TitlePage::Client.new
tp.login('someuser','topsecret')
puts tp.find("0091835135").inspect
sleep 3
puts tp.find("9780672327568").inspect
tp.logout
Alternative Usage:
RBook::TitlePage::Client.open("username","password") do |tp|
puts tp.find("0091835135").inspect
sleep 3
puts tp.find("9780672327568").inspect
end
Defined Under Namespace
Classes: ArrayOfContributor, ArrayOfProductIdentifier, Client, Contributor, InvalidRubyVersionError, NotLoggedInError, Price, Product, ProductIdentifier, SearchResults, Stock, SupplyDetail, Title, TitleQueryPortType, WWWClient