Goodreads Developers discussion
examples / showcase
>
PHP widget with the last read books: anyone interested?
date
newest »
newest »
Ok, the article has been eventually released!http://i.imgur.com/dIvr1S2.jpg
The php code itself is pretty self explanatory and it's written in plain english.
The article is in italian but you can click on the english language in the TRANSLATOR widget in the sidebar (I reviewed the translation and fixed most errors).
http://www.flapane.com/blog/2013/03/c...
Any feedback left here or in the blog commenting system would be much appreciated.




I've created a widget for my website because I wanted to display my read books on the home page.
It shows the last $number_books read books, or, if there's currently a book you're reading in "currently-reading" bookshelf, display it together with $number_books-1 read books.
It needs an API key, a Goodreads userid, the number of books to show, the expiration of the cachefile and the cachefile name.
Book covers images are shown. Title, author and description (120 characters) are shown in the tooltip that appears when you hover with the mouse arrow on one of the books. Descriptions are not shown in Internet Explorer because it's a crappy browser and doesn't support break lines in the tooltips.
I added some fancy css3 code to it (ie. the cover rotates when you hover on a book).
It respects the API terms, there are backlinks, no more than 1 API call per second, the name GOODREADS is shown and the cachefile lasts 24hours only.
You can see it in action at the bottom of my homepage (http://www.flapane.com)
If somebody is interested, then I may consider to write a blog post and show the source code and a couple of explainations in the next weeks. Just let me know. :)