More examples

This commit is contained in:
Dan Milne
2020-04-22 14:34:50 +10:00
parent e7d9951223
commit fa84ec1092

View File

@@ -20,6 +20,8 @@ Or install it yourself as:
## Usage
This library will use Openlibrary's *view* or *data* endpoint as appropriate to the requested attribute. You can access the raw responses with *Book#view* or *Book#data*.
```
> book = Openlib::Book.new(id: '9780316030571')
> book.title
@@ -42,6 +44,8 @@ You can query via ISBN, OCLC, LCCN or Openlibrary's OLID.
=> {"isbn_13"=>["9780142406632"], "openlibrary"=>["OL7360862M"], "isbn_10"=>["0142406635"], "goodreads"=>["60400"], "librarything"=>["173672"]}
````
## Openlibrary
For more information on Openlibrary, check their [Developer center](https://openlibrary.org/developers) and the [Books API documentation](https://openlibrary.org/dev/docs/api/books).