No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
Gemfile
Gemfile.lock
README.md
bookshout_fulfillment_api.gemspec

README.md

BookShout Fulfillment API Client

This is the BookShout Fulfillment API client gem, it can be used to request that a book code be sent to an email address.

This gem provides a simple wrapper around the HTTP version of the API.

To use this API, you will need a valid API key, speak to your BookShout representative if you don't already have one.

Usage

client = Bookshout::API::FulfillmentClient.new(api_key: '<your api key here>')
response = client.send_book(isbn: '9781250075598', email: 'jerry.horne@example.com')

if response.successful?
  puts "all is well, user will receive code shortly"
  puts response.request_id
else
  puts "something went wrong:"
  puts response.message
end