mirror of
https://github.com/dkam/openlib.git
synced 2025-12-28 03:04:53 +00:00
More examples
This commit is contained in:
@@ -20,6 +20,8 @@ Or install it yourself as:
|
|||||||
|
|
||||||
## Usage
|
## 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 = Openlib::Book.new(id: '9780316030571')
|
||||||
> book.title
|
> 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"]}
|
=> {"isbn_13"=>["9780142406632"], "openlibrary"=>["OL7360862M"], "isbn_10"=>["0142406635"], "goodreads"=>["60400"], "librarything"=>["173672"]}
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Openlibrary
|
## 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).
|
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).
|
||||||
|
|||||||
Reference in New Issue
Block a user