Boogle is a gem that takes off your hands from the haslle of dealing with google books APIs
Add this line to your application's Gemfile:
gem 'boogle'
And then execute:
$ bundle
Or install it yourself as:
$ gem install boogle
boogle = Boogle::Client.new(key: 'api_key')
search by keyword only
boogle.volume.search(keyword: 'flowers')
you can choose to search in specific field by
boogle.volume.search(keyword: 'war', field: 'inauthor', infield: 'Ernest Hemingway') # get all war books written by Ernest Hemingway
here is a list of other fields
boogle.volume.find(id: '_oG_iTxP1pIC')
boogle.volume.list(user_id: '', bookshelf_id: '')
boogle.volume.mylibrary(auth_token: '', bookshelf_id: '')
boogle.volume.remove(auth_token: '', book_id: '', bookshelf_id: '')
boogle.volume.clear(auth_token: '', bookshelf_id: '')
boogle.bookshelf.list(user_id: '')
boogle.bookshelf.find(user_id: '', bookshelf_id: '')
boogle.bookshelf.mylibarary(auth_token: '')
Bug reports and pull requests are welcome on GitHub at https://github.com/hassantc/boogle. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.