A Ruby client for the Google Books API .
There are five endpoints for this client, namely:- 1. Books - gives a list of books containing keywords from the search parameters.
- 2. Downloads - similar to #1, however, search is limited to books that can be downloaded and accessed thru an ebook reader.
- 3. Volume ID - gives a single book from the given volume ID. Since each volume ID is unique, is must be explicitly entered by the user.
- 4. Bookshelves - gives the list of bookshelves of a user. Each bookshelf ID is specific to a user and must be explicitly entered as well.
- 5. Shelf Volumes - gives the list of books from a user's bookshelf. Parameters should include bookshelf ID and shelf ID.
- 1. Before anything else, generate an API key.
- 2. Fork or download this repo.
- 3. In your command line, cd into the repo and bundle install Faraday and OJ(optional) gems.
- 4. Run the database migrations thru rake db:migrate.
- 5. Start the rails server by typing bin/rails server or bin/rails s.
-
5. In the client.rb file under the apps/apis/google_books/v1 directory, input the generated API key here
- 6. In each of the controllers, the APIs are already contained in their respective wrappers and each of the controllers have a corresponding view file. However, views can be customized depending on the user.