On Thu, Apr 28, 2011 at 4:04 AM, Anand Chitipothu <[email protected]> wrote: > > On 28-Apr-2011, at 6:34 AM, Dan Scott wrote: > >> On Fri, Nov 12, 2010 at 2:13 AM, Anand Chitipothu <[email protected]> wrote: >> <snip> >>> I've extended the OL Books API to support this. (running on my dev server >>> right now) >> <snip> >>> with jscmd=data, the API provides a lot more info. >>> >>> $ curl -s >>> 'http://anand.openlibrary.org/api/books?bibkeys=OL22336175M,OL24218576M,OL1114172M&format=json&jscmd=data' >>> { >>> "OL24218576M": { >>> "title": "A romance on three legs", >>> "url": >>> "http://anand.openlibrary.org/books/OL24218576M/A_romance_on_three_legs", >>> "key": "/books/OL24218576M", >>> ... >>> "ebooks": [ >>> { >>> "borrow_url": >>> "http://openlibrary.org/books/OL24218576M/A_romance_on_three_legs/borrow", >>> "availability": "borrow", >>> "preview_url": >>> "http://www.archive.org/details/romanceonthreele00hafnrich", >>> "formats": { >>> "djvu": { >>> "url": >>> "http://www.archive.org/download/romanceonthreele00hafnrich/romanceonthreele00hafnrich.djvu", >>> "permission": "restricted" >>> } >>> } >>> } >>> ] >>> }, >> >> Hi Anand: >> >> This is great! I actually just went through the process of >> reverse-engineering that structure, though, as >> http://openlibrary.org/dev/docs/api/books hasn't been updated to >> include this new format and as I was working from that page to update >> and enhance the OpenLibrary plugin for Evergreen, I was surprised and >> delighted by the extra details. I would have updated the page myself >> but that part of the wiki appears to be locked down. So I went to post >> to the mailing list and found this... nice! >> >> Can I ask you (or someone) to update >> http://openlibrary.org/dev/docs/api/books accordingly? I'm sure it >> will help other developers get to their destination a lot faster. > > The Books API docs is up-to-date. Please see "jscmd=data" subsection in "The > Data Format" section.
Huh. Maybe i'm seeing a cached version of http://openlibrary.org/dev/docs/api/books; under the "ebooks" subsubsection I currently see: ebooks List of ebooks. Each entry will be in the following format: { "preview_url": "http://www.archive.org/details/..." } ... which is true in that there is a preview_url key, but all of the other extremely useful keys and structures that you have added are undocumented. Dan _______________________________________________ Ol-tech mailing list [email protected] http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech To unsubscribe from this mailing list, send email to [email protected]
