From e7d99512239cd186b80b0198c65cd3f51bbb0091 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Wed, 22 Apr 2020 14:32:01 +1000 Subject: [PATCH] More examples --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ea0bb4a..d5eb579 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,18 @@ Or install it yourself as: => ["Fiction", "World War, 1939-1945", "World War, 1939-1945 in fiction", "Data encryption (Computer science)", "Cryptography", "Literature", "Science Fiction", "Long Now Manual for Civilization", "Code and cipher stories"] ``` +You can query via ISBN, OCLC, LCCN or Openlibrary's OLID. + +``` +> b = Openlib::Book.new(id: 'OL7360862M', id_kind: :olid) +> b.title +=> "Ranger's Apprentice" +> b.authors +=> ["John Flanagan"] +> b.identifiers +=> {"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).