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. -- Dan Scott Laurentian University _______________________________________________ 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]
