Current section
Files
Jump to
Current section
Files
google_books
README.md
README.md
# GoogleBooks
A simple Elixir wrapper for the Google Books API.
## Usage
Pass a Google Books API key from your application's configuration:
```elixir
GoogleBooks.find_by_isbn("978-1338099133", api_key: api_key)
```
A successful lookup returns the Google Books volume information map. An empty
result returns `:not_found`. See `GoogleBooks.find_by_isbn/2` for error returns.
## Installation
Requires Elixir 1.17 and Erlang/OTP 27 or later.
Add `google_books` to your dependencies in `mix.exs`:
```elixir
def deps do
[{:google_books, "~> 0.1.0"}]
end
```
## License
```
Copyright (c) 2016 Nithin Bekal
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```